Replace WP Logo and the default 'logo' link
Use your custom logo along a replace the default 'logo' link on the login page, don't…
MemberPress: Change Courses Listing Page Link
This code snippet will replace the URL for built-in links to the default MemberPress Course Listings…
MemberPress: TaxJar - Prevent Sending VAT Transactions to TaxJar
When the MemberPress TaxJar integration is active, by default, MemberPress will send all transactions to TaxJar,…
Change site url
add_action('init', 'update_site_url_once'); function update_site_url_once() { if (get_option('home') !== 'https://amazingmarvin.com/blog/') { update_option('siteurl', 'https://amazingmarvin.com/blog/'); update_option('home', 'https://amazingmarvin.com/blog/'); } }
WooCommerce - Add min height to title
Used to help the shopping buttons align vertically when the title line wraps irregularly due to…
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'; } );
Google Ads
Google AdSense Short code insert
Hide all admin notices and notifications
The code below can hide all notices, error notices, warnings, update notices, etc, from the WP…