Skip to content

MjHead/jet-popup-trigger-from-options

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Config example

Add this code into functions.php file of your active theme

add_filter( 'jet-ptfo/config', function( $config ) {

	$config[] = array(
		'page' => 'option-page-slug',
		'option' => 'option-name',
		'popup' => 123,
	);

	return $config;
} );

where:

  • option-page-slug - you need to replace with your actual option page slug;
  • option-name - you need to replace with option field name/ID which will control popup visibility. The field should return true or false (like a Switcher field, for example);
  • 123 - its a popup ID you need to launch. It can be found in the address bar on the popup edit page.

Please note - this plugin replaces only popup conditions logic, open event still need to be set in the popup settings section

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages