MemberPress: Shortcode To Display Content for Parent Accounts and Exclude Subaccounts
The code snippet registers a new shortcode: [mepr_exclude_sub_accounts]...[/mepr_exclude_sub_accounts]. The content added to this shortcode will be…
Gravity Forms: Add Custom CSS Buttons to GravityWP CSS Ready Classes Plugin
Add custom CSS: quick buttons and accordion at the top of the GravityWP - CSS Selector…
Lazy load YouTube videos in WordPress with Shortcode
Lazy load YouTube videos in WordPress with Shortcode
Change Jump links to buttons
Make the "jump to recipe" and "print recipe" links look like buttons at the top of…
Download Column Thumbnail
Render a new post column featuring the download thumbnail.
Add User to RCP Subscription on Purchase
Add customer to an RCP subscription level when they purchase a specific product.
mobile sticky menu chatgpt html
Home Shop Cart Account
Explicit Fixed Width and Height
add_filter( 'the_content', 'add_image_dimensions' ); function add_image_dimensions( $content ) { preg_match_all( '/]+>/i', $content, $images); if (count($images) <…
Gtag
Analytics
om.Campaign.close example
document.addEventListener('om.Campaign.close', function(event) { const url = "http://optinmonster.com"; window.location.href = url; } );
om.Action.view
document.addEventListener('om.Action.view', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); // This event is…
Revenue Attribution Curl
curl --request POST \ --url https://app.optinmonster.com/v2/revenue \ --header 'Content-Type: application/json' \ --header 'Origin: optinmonster.com' \ --header…
trigger monsterlink on hover
jQuery(document).ready(function($){ // Change 'rt78pcbzrddo1y7w0yq3' to match your specific campaign slug var campaignSlug = 'rt78pcbzrddo1y7w0yq3'; $('body').on('mouseover', '[href="https://app.monstercampaigns.com/c/'…
om-custom-redirect-all-close.js
jQuery(document).ready(function($){ function omRedirect() { var url = "https://optinmonster.com"; $(location).attr('href',url); } $(document).on('OptinMonsterOnClose', function(event, data, object){ omRedirect(); });…