MemberPress: Change the Back-Button Link on Courses
This code code snippet will replace the URL for the Back-Button link (Arrow link) with a…
MemberPress: WP Forms Pro - Fix Custom Phone Number Field
When a custom phone number field is added to the MemberPress membership registration forms, WP Forms…
MemberPress: Allow Users to Pause/Resume Subscriptions Only for Specific Memberships
For this code snippet to work, the Allow members to pause/resume their subscription option needs to…
MemberPress: Override VAT Tax for the UK
By default, UK is included in the list of VAT countries in MemberPress. Thus, when VAT…
How to Display Store Credits Earned in WooCommerce New Order Emails
Add this to your "New Orders" email template from WooCommerce > Settings > Emails
om.Listeners.init
document.addEventListener('om.Listeners.init', function(event) { console.log(event.detail.Listeners); console.log(event.detail.Campaign); } );
om.Form.init
document.addEventListener('om.Form.init', function(event) { console.log(event.detail.Form); console.log(event.detail.Campaign); } );
om.Optin.error example
document.addEventListener('om.Optin.error', function(event) { const url = "http://optinmonster.com"; window.location.href = url; } );
Revenue Attribution Curl
curl --request POST \ --url https://app.optinmonster.com/v2/revenue \ --header 'Content-Type: application/json' \ --header 'Origin: optinmonster.com' \ --header…
add filter
add_filter( 'optin_monster_api_menu_cap', function( $cap ) { return 'edit_pages'; } );
om trigger close a element
Click to close!
Enable quantity field on shop page
// Remove the default add to cart button remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); // Add custom…