Untitled Snippet

google-site-verification=Z6ci_S0g839p6z-pqU4OUb5KSQpdoJBRrjh791uaErY

Escaping data with wp_kses

// ❌ Don't use html tags in escaping functions like esc_html, esc_attr and their localized equivalents…

Tweak Price Display (Adjusts the Prices) | Display Eventbrite Events

The Display Eventbrite plugin premium version can display prices. If you want to tweak to display…

Disable WP Texturize

// Disable curly quotes remove_filter( 'the_content', 'wptexturize' );

unitap.io

function myfirsttheme_setup() { /* * Load additional block styles. */ $styled_blocks = ['latest-comments']; foreach ( $styled_blocks…

om-manually-set-global-cookies.js

// Set OptinMonster Global Cookies when this function runs function setGlobalCookies() { document.cookie = "omSuccessCookie=true; expires=Fri,…

slide-top-right.css

html div#om-{{id}} { top: 0px !important; bottom: unset !important; transition: top 0.3s ease 0s !important; }

Customize Gift Card Code

/* Customize the generated Gift Card Code */ function agcfw_change_prefix() { return array( 'characters' => 'ABCDEFGHJKMNPQRSTUVWXYZ23456789',…

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,…

1 … 66 67 68 69 70 … 133