Vimeo Autoplay Unmute (Homepage)
document.addEventListener("click", function () { const iframe = document.querySelector("iframe[src*='vimeo.com']"); if (!iframe) return; iframe.contentWindow.postMessage( JSON.stringify({ method: "setVolume", value:…
WPCode Snippet: Download All Snippets Button
* Description: Adds bulk download button to WPCode Snippets Sync admin page * Location: Admin Only…
Show Terms By Default
Show the terms of agreement open on the checkout page by default
Donation Fee Radio Field
/** * 1. Register the Required Yes/No Radio Field */ add_action( 'init', function() { if (…
Prevent Wholesale Customer to Add Product to the Cart If The Product is Low on Stock
// Prevent wholesale customer to add to cart if the product is low on stock add_filter('woocommerce_is_purchasable',…
Retroactive Lifetime Licenses
Mark all existing licenses for an EDD product as lifetime licenses.
RED'S Java Snippet
fetch("https://redllc.ai/wp-json/chaport/v1/lead", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(payload) }) .then(res => res.json()) .then(data…
Vendor Canonical Links
Makes the vendor canonical links go to yoursite/vendor/vendor-name instead of yoursite/vendor.
Home page
home page schema
Remove ISO 4217 for Google Feeds
// Force localization for all feeds add_filter('adt_product_feed_localize_price_args', function($args) { $args['decimal_separator'] = '.'; $args['thousand_separator'] = ','; return…