MemberPress: Disable MemberPress Protection On Specific Page
This snippet allows disabling the MemberPress protection (unprotect) on a specific page. The code snippets overrides…
MemberPress: Auto Approve Sub-Accounts with New User Approve Plugin
This code snippet can be used if the New User Approve plugin is set on the…
Quiz About Getting Old
10 question multiple choice quiz about getting old
ACF JSON Menu Import
if( function_exists('acf_add_options_page') ) { acf_add_options_page(); } // // 1. Register ACF Field for Menu JSON add_action('acf/init',…
Wordpress Debugging
define( 'WP_DEBUG', true ); define( 'SAVEQUERIES', true );
Year footer update
Update copyright year automatically in footer
Trustpilot header code
ads trustpilot script to the header for reviews and tracking
om.WebFonts.init
document.addEventListener('om.WebFonts.init', function(event) { console.log(event.detail.WebFonts); console.log(event.detail.Campaign); } );
om.Styles.positionPopup
document.addEventListener('om.Styles.positionPopup', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); // This event is…
Slide Reposition Bottom Left
html div#om-{{id}} { right: auto !important; margin-left: 20px !important; }
om external links monsterlink uniqe id
(function(window, document) { // Your campaign's UNIQUE ID var campaignSlug = 'pcoamlfqsv7jeervep0b'; // ... the rest…
allow authors
add_filter( 'optin_monster_api_menu_cap', function( $cap ) { return 'publish_posts'; } );
Success view
#om-{{id}}-success button.{{ns}}-CloseButton { /* Your Custom Styles */ }
Feed Generation Cron Script
This file will be used to run via cron and update feed based on the ID