om.Types.init

document.addEventListener('om.Types.init', function(event) { // The Campaign type. console.log(event.detail.Types.type); // The Campaign Type object (one of Floating,…

om.DisplayRules.afterRun

document.addEventListener('om.DisplayRules.afterRun', function(event) { var DisplayRules = event.detail.DisplayRules; var Campaign = event.detail.Campaign; if ( 'YOUR-CAMPAIGN-ID' === Campaign.id…

Noindexi tag 2

add_filter('wp_headers', function($headers) { unset($headers['X-Robots-Tag']); // remove noindex header return $headers; });

Teddy James
<10

disable OptinMonster campaigns for visitors with specific user roles

function om_docs_hide_optin_for_user_roles( $campaigns ) { // Do nothing if no user is logged in. if (…

Google Search Console

google-site-verification=2cD88PiH77SW3-7_W4NAENAER1K0yKAoxVdNAd_DVqs

Lazy Load

add_action('wp_head', 'custom_lazyload_script'); function custom_lazyload_script(){ ?>

Site-Wide Hero Optimisation

/** * Promote the hero image (LCP) site-wide: * - fetchpriority="high", loading="eager" * - remove lazy…

Scott Cassidy
<10

GravityView_DIR_AB_ACF - GravityView Views ACF Fields

* WPCode Snippet: GravityView Views ACF Fields * Description: Registers ACF fields for GravityView configurations and…

ismail daugherty PRO
<10
1 … 106 107 108 109 110 … 244