om.Analytics.track example 1
document.addEventListener('om.Analytics.track', function(event) { if ( 'conversion' === event.detail.Analytics.type ) { console.log(event.detail.Campaign.id + '-' + event.detail.Campaign.type +…
Page Element Shortcodes
add_shortcode('page_title', function () { global $wp_query; if( isset( $wp_query ) && (bool) $wp_query->is_posts_page ) { return…
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); } }
Hello
echo "hello World !";
LIFTER_TextReplace - Changes "Courses" to "Modules" and "Lessons" to "Steps
* Changes "Courses" to "Modules" and "Lessons" to "Steps" * Add to WP Code Snippets or…
SYNC_DIR - Users
/** * WPCode Snippet: WordPress Users Sync - FINAL NO DUPLICATES VERSION * Description: Bulletproof manual…