JetPopup - control popup from options page
Allow to enable/disable popup visibility from JetEngine option page
by Crocoblock · github.com/mjhead/jet-popup-trigger-from-options · website
★ 3stars
2forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/mjhead/jet-popup-trigger-from-options/archive/refs/heads/master.zipConfig 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