Free to use
Code snippets
Small, ready-to-use pieces of PHP, JavaScript, and WooCommerce code from real client projects — copy them straight from the page, or grab the full file on GitHub.
Serve Media Library Files From a Different Domain or CDN
Points uploaded media at a separate host (like a CDN or assets subdomain) instead of your main site URL. Two approaches shown — a direct option update, and a filter-based version that avoids writing to the database.
View snippetTurn Off Automatic Plugin Updates
Disables WordPress's background auto-updates specifically for plugins, without touching core or theme updates.
View snippetBulk-Convert Posts From One Post Type to Another
Runs a direct database update to change every post of one post type into another — useful when migrating content into a new custom post type.
View snippetSilence the jQuery Migrate Console Warning
Removes the “JQMIGRATE: Migrate is installed...” message that shows up in the browser console on sites still using jQuery Migrate.
View snippetTurn Off WordPress Core Auto-Updates
Stops WordPress from silently updating itself in the background — useful when you want to control exactly when updates happen.
View snippetReplace the WordPress Logo on the Login Page
Swaps the default WordPress logo above the login form for your own, via a bit of inline CSS.
View snippetBasic Open Graph Meta Tags for Single Posts
Outputs Open Graph title, description, and image tags on single posts — useful groundwork if you're not running an SEO plugin yet.
View snippetKeep the Second Toolbar Row Open in the Classic Editor
Skips the extra click to expand TinyMCE's second formatting row — it's just always visible.
View snippetRevert to the Classic Editor Without a Plugin
Turns off the block editor site-wide with a single filter — no Classic Editor plugin required.
View snippetDisable XML-RPC
Turns off WordPress's legacy XML-RPC interface and its related discovery links in the page <head> — a common security hardening step, since XML-RPC is a frequent brute-force target.
View snippetNotify the Admin When a User Updates Their Profile
Sends an email to the site admin any time a user saves changes to their profile — useful on multi-author or membership sites.
View snippetStrip Out WordPress’s Built-In Emoji Scripts
Removes the extra CSS/JS WordPress loads on every page to support emoji rendering in older browsers — most modern browsers don't need it.
View snippet