Shipping label template

/** * The template for displaying the shipping label * * Override this template by copying…

Current Year

function current_year_shortcode() { return date('Y'); } add_shortcode('year', 'current_year_shortcode');

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…

1 … 78 79 80 81 82 … 133