Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/mjhead/jet-popup-trigger-from-options/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
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