om.Ruleset.init
document.addEventListener('om.Ruleset.init', function(event) { console.log(event.detail.Ruleset); // An array of the Group objects console.log(event.detail.Ruleset.groups); console.log(event.detail.Campaign); } );
om.Action.window
document.addEventListener('om.Action.window', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); // This event is…
disable webfonts
document.addEventListener('om.Campaign.init.preload', function(event) { var campaign = event.detail.Campaign; campaign.settings.preload = false; });
allow editors
add_filter( 'optin_monster_api_menu_cap', function( $cap ) { return 'edit_pages'; } );
Optin View
#om-{{id}}-optin button.{{ns}}-CloseButton { /* Your Custom Styles */ }
plain-css.css
html div#om-{{id}} * { /* Anything inside here will be applied to all elements within your…
wrong redirect .htaccess
# Slash al final RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !# RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule…
Disabling the Admin Bar for Non-Admin Users
add_action('after_setup_theme', 'remove_admin_bar'); function remove_admin_bar() { if (!current_user_can('administrator') && !is_admin()) { show_admin_bar(false); } }
Sort Events Category by Publish Date (Oldest First)
function sort_posts_by_category($query) { if ($query->is_main_query() && !is_admin()) { $oldest_first_categories = array(1483,1486,1485,1484,1482,1391); // Replace with the IDs…
Hello
echo "hello World !";