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

Hide Admin Menu Items Based on Email Domain

Trims down the wp-admin sidebar for anyone whose account email isn't on your company's domain — useful for client accounts that shouldn't see internal tools.

View snippet
WordPress

Customize the “Read More” Link Text

Overrides WordPress's default more-link markup with your own label and formatting.

View snippet
WordPress

Exclude Pages From Site Search

Marks the built-in Page post type as excluded from search — similar to the custom-post-type version, but targeting Pages specifically.

View snippet
WordPress

Allow ZIP, MOBI, PDF & EPUB Uploads

WordPress blocks a handful of file types from the Media Library by default — this whitelists a few common document and ebook formats.

View snippet
WordPress

Boilerplate for a Classic Widgets API Widget

A starting class for building a classic (non-block) sidebar widget, with a field generator you can extend for more inputs.

View snippet
WordPress

Set a Custom Order for the Admin Sidebar Menu

Rearranges the order menu items appear in down the left side of wp-admin.

View snippet
WordPress

Add a Preconnect Hint for Google Fonts

Tells the browser to open an early connection to Google's font CDN before it's actually needed, shaving a bit of load time off font requests.

View snippet
WordPress

Add a Custom Widget to the wp-admin Dashboard

Registers your own box on the main Dashboard screen — useful for surfacing client instructions, support links, or site-specific notes.

View snippet
WordPress

Customize the wp-admin Footer Text

Replaces the default “Thank you for creating with WordPress” line at the bottom of every admin screen.

View snippet
WordPress

Enable HTML5 Markup for the Search Form

Opts the theme into HTML5-style markup specifically for the search form, part of WordPress's broader HTML5 theme support.

View snippet
WordPress

Log PHP Values to the Browser Console

A quick debugging helper that prints a PHP value straight into the browser's JavaScript console — handy for spotting what a variable actually contains without a full debug setup.

View snippet
WordPress

Show a Different Nav Menu to Logged-In Users

Swaps which menu location renders depending on whether the visitor is logged in — useful for member-only sites or a different nav for admins.

View snippet