MemberPress: Restrict Purchase of a Specific Membership Based on Existing Subscriptions
This code snippet restricts the purchase of a specified MemberPress membership (restricted membership), based on a…
Restrict payment methods based on cart total
Restrict payment methods based on cart total
Database connection test snippet
A snippet to test the connection to the database.
om.Dtr.init
document.addEventListener('om.Dtr.init', function(event) { console.log(event.detail.Dtr); console.log(event.detail.Campaign); // Registers a custom `name` smart tag. event.detail.Dtr.setCustomVariable('name', 'Thomas'); } );
Una plant Quiz Score Calculator
/** * Author: Sumaiya, Clickup Doc: https://app.clickup.com/36636088/v/dc/12y1dr-22535/12y1dr-25375 * Function to handle quiz submission, calculate results based…
om.Action.refresh
document.addEventListener('om.Action.refresh', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); // This event is…
disable webfonts for a spesific campaign
document.addEventListener('om.Campaign.init.preload', function(event) { var campaign = event.detail.Campaign; if ({slug} === campaign.id) { campaign.settings.preload = false; }…
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
Disable Search
Disable Search