Enable Pinch to Zoom on Mobile Devices
function remove_my_action() { remove_action('wp_head', 'et_add_viewport_meta'); } function dt_et_add_viewport_meta(){ echo ''; } add_action( 'init', 'remove_my_action'); add_action( 'wp_head',…
TranslatePress Shortcode Styler MINIMAL
TranslatePress Shortcode Styler MINIMAL /* Grundlegende Anpassungen für den Sprachumschalter */ /* Entfernt alle Padding-, Margin-…
Graili shop
Sports supplements
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 Any URLs Containing a Specific URL Path
document.addEventListener('om.Campaign.startShow', function(event) { if(window.location.search.indexOf('shopping-cart') > -1) { // replace shopping-cart wtih your specific URL path var…
om.Campaigns.init
document.addEventListener('om.Campaigns.init', function(event) { // This event is passed the Campaigns object console.log(event.detail.Campaigns); } );
om.DisplayRules.init
document.addEventListener('om.DisplayRules.init', function(event) { console.log(event.detail.DisplayRules); // An array of the Ruleset objects console.log(event.detail.DisplayRules.rulesets); console.log(event.detail.Campaign); } );
om.Action.close
document.addEventListener('om.Action.close', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); // This event is…
Revenue Attribution Exclude Campaign
document.addEventListener('om.Campaign.init', function(event) { if ('CAMPAIGN_ID' === event.detail.Campaign.id) { // replace CAMPAIGN_ID with the OptinMonster campaign's unique…
test
test