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

Turn Off Automatic Theme Updates

Same idea, scoped to themes only — handy when you're actively customizing a theme and don't want it silently overwritten.

View snippet
WordPress

Clear Every Default Widget Off the Dashboard

Removes the stock Dashboard widgets (Quick Draft, Activity, At a Glance, etc.) so you can start from a clean slate — often paired with a custom widget of your own.

View snippet

Change the Default Excerpt Word Count

WordPress trims excerpts to 55 words by default — this sets your own limit.

View snippet
WordPress

Track Post Views Without a Plugin

A lightweight view counter that stores a hit count in post meta each time a single post loads — enough to sort by “most viewed” without installing a dedicated plugin.

View snippet
WordPress

Enable Categories for Media Attachments

Lets you assign regular post categories to media library attachments, so images and files can be organized and filtered the same way posts are.

View snippet
WordPress

Strip Version Query Strings From CSS/JS URLs

Removes the ?ver=x.x WordPress appends to enqueued stylesheets and scripts — some CDNs and caching setups don't cache query-string URLs well, so this helps them cache properly.

View snippet
WordPress

Customize the Excerpt “More” Text

Replaces the default ‘[...]’ that WordPress appends to trimmed excerpts with your own text.

View snippet
WordPress

Standard Pattern for Enqueuing Theme CSS/JS

A template for loading Bootstrap plus your own stylesheet and script correctly through WordPress's enqueue system.

View snippet
WordPress

Exclude a Category From the Main WordPress Loop

Hides posts from a specific category ID across the site's default queries — handy for keeping an internal or catch-all category out of public listings.

View snippet
WordPress

Disable the WordPress REST API

Turns off the built-in JSON REST endpoints — worth doing only if you're certain nothing on your site (plugins, blocks, headless setups) depends on it.

View snippet
WooCommerce

Add a Custom Post Type Through WooCommerce

Lets a non-`product` post type behave like a purchasable WooCommerce item — pulling its price from a custom field and giving it a working "Add to Cart" button, without converting it into an actual Product post type.

View snippet
WooCommerce

Reorder (and Rename) the My Account Menu Tabs

Controls the exact order the tabs appear in on the WooCommerce My Account page, and lets you rename any of them at the same time — including slotting in a custom tab you've added elsewhere.

View snippet