Payment Method Smart Tag

This code only has handling for klarna, us_bank_account and card (default). The other available types are…

Reset Duplicator Pro capabilities

This snippet resets the Duplicator Pro capabilities. Insert it into the wp-config.php file, refresh the wp-admin…

om.Html.init

document.addEventListener('om.Html.init', function(event) { console.log(event.detail.Html); console.log(event.detail.Campaign); } );

om.Rule.init

document.addEventListener('om.Rule.init', function(event) { console.log(event.detail.Rule); // The specific rule object. console.log(event.detail.Rule.rule); console.log(event.detail.Campaign); } );

om.Campaign.reset

document.addEventListener('om.Campaign.reset', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); } );

om external links monsterlink

(function(window, document) { // Your campaign's UNIQUE ID var campaignSlug = 'YOUR-UNIQUE-ID'; // Helper to get…

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); } }

1 139 140 141 142 143 216