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.

WordPress

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 snippet
WordPress

Turn Off Automatic Plugin Updates

Disables WordPress's background auto-updates specifically for plugins, without touching core or theme updates.

View snippet
WordPress

Bulk-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 snippet
WordPress

Silence 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 snippet
WordPress

Turn 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 snippet
WordPress

Replace 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 snippet
WordPress

Basic 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 snippet
WordPress

Keep 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 snippet
WordPress

Revert to the Classic Editor Without a Plugin

Turns off the block editor site-wide with a single filter — no Classic Editor plugin required.

View snippet
WordPress

Disable 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 snippet
WordPress

Notify 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 snippet
WordPress

Strip 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