Remove Specific Campaign From a Specific URL
document.addEventListener('om.Campaign.startShow', function(event) { if(window.location.href == 'https://example.com/specific-page') { // replace with your specific URL var optinCampaign =…
om.Main.parseCampaigns
document.addEventListener('om.Main.parseCampaigns', function(event) { // This event is passed the xhr object console.log(event.detail.xhr); } );
om.Campaign.canLoad
document.addEventListener('om.Campaign.canLoad', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); } );
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…
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…
Remove Specific Campaign From Any URLs Containing a Specific URL Path-v1
document.addEventListener('om.Campaign.startShow', function(event) { if(window.location.search.indexOf('shopping-cart') > -1) { // replace shopping-cart wtih your specific URL path var…
change from the address
change email and name
Enable JSON and SVG uploads for administrator users only
/** * Enable JSON and SVG uploads for administrator users only. */ add_filter( 'upload_mimes', function (…