allow contributors
add_filter( ‘optin_monster_api_menu_cap’, function( $cap ) { return ‘edit_posts’; } );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘optin_monster_api_menu_cap’, function( $cap ) { return ‘edit_posts’; } );Continue reading
add_filter( ‘optin_monster_api_menu_cap’, function( $cap ) { return ‘publish_posts’; } );Continue reading
add_filter( ‘optin_monster_api_menu_cap’, function( $cap ) { return ‘edit_pages’; } );Continue reading
jQuery(document).ready(function($){ // Change ‘rt78pcbzrddo1y7w0yq3’ to match your specific campaign slug var campaignSlug = ‘rt78pcbzrddo1y7w0yq3’; // When any link contains ‘external’ in the rel attribute $(‘a[rel*=external]’).on(‘mouseover’, function() { window[‘om’ + campaignSlug].startShow(); }); });Continue reading
jQuery(document).ready(function($){ // Change ‘rt78pcbzrddo1y7w0yq3’ to match your specific campaign slug var campaignSlug = ‘rt78pcbzrddo1y7w0yq3’; // When hovering over any element with the ‘.content’ class – change as you require $(‘.content’).on(‘mouseover’, function() { window[‘om’ + campaignSlug].startShow(); }); });Continue reading
jQuery(document).ready(function($){ // Change ‘rt78pcbzrddo1y7w0yq3’ to match your specific campaign slug var campaignSlug = ‘rt78pcbzrddo1y7w0yq3’; $(‘body’).on(‘mouseover’, ‘[href=”https://app.monstercampaigns.com/c/’ + campaignSlug + ‘/”]’, function() { window[‘om’ + campaignSlug].startShow(); }); });Continue reading
add_filter( ‘optin_monster_api_menu_cap’, function( $cap ) { return ‘edit_pages’; } );Continue reading