Enable automatic updates for WordPress core, plugins, and themes
// Enable automatic updates for WordPress core, plugins, and themes add_filter('automatic_updater_disabled', '__return_false'); add_filter('auto_update_core', '__return_true'); add_filter('auto_update_plugin', '__return_true');…
Test Snippet
Just a snippet description
Set a cookie if the URL contains specific UTM parameters.
The below script checks the URL for specific UTM parameters and if found, saves a cookie…
WriteSonic
Fix Issues with Website
om.Types.init
document.addEventListener('om.Types.init', function(event) { // The Campaign type. console.log(event.detail.Types.type); // The Campaign Type object (one of Floating,…
om.Campaign.show
document.addEventListener('om.Campaign.show', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); } );
om.Campaign.cleanup
document.addEventListener('om.Campaign.cleanup', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); } );
Style ALL Placeholder Text on Your Website
::-webkit-input-placeholder { color: #333 !important; } /* Chrome/Opera/Safari */ ::-moz-placeholder { color: #333 !important; } /*…
trigger monsterlink of an external link
jQuery(document).ready(function($){ // Change 'rt78pcbzrddo1y7w0yq3' to match your specific campaign slug var campaignSlug = 'rt78pcbzrddo1y7w0yq3'; // When…
start Close
om{{id}}.startClose();
Remove Specific Campaign Based on the Referral URL- v1
document.addEventListener('om.Campaign.startShow', function(event) { if(document.referrer.search.indexOf('google.com') > 0) { // replace with the specific referral domain var optinCampaign…
Gravitar Fix
add_filter('get_avatar', function($avatar_html, $id_or_email, $size) { // Force width/height attributes to match the requested avatar size $size…
GravityForms_DIR_AB_ACF - Gravity Forms & Feeds ACF Fields
* Description: Registers ACF fields for form and feed data + notification/confirmation content * Location: Run…