WPCodeBin
Beta

Public WordPress Code Snippets

(Shared by WPCodeBin users. This list is not curated.)

WpCodebox Edit Panel full Size

View Code →

WPCodeBox Responsive screen sizes in preview panel

View Code →

ACF File Field Upload Preview

View Code →

WooCommerce Archive - Change tag H3

View Code →

[Condition] TranslatePress in Breakdance Builder | WordPress

View Code →

Hide Wordpress Admin notifications

View Code →

Featured image column for posts / pages

View Code →

Media library Alt text column

View Code →

Custom Admin page for site Documentation

View Code →

WPCodeBox2 Layout controls

View Code →

[Media Library] Add Admin Column Media File Size (you can switch it on and off like normal)

View Code →

[Admin Columns] Posts / Pages Admin Columns - Show Thumbnail / Image Filename / Alt-Text / Excerpt / Permalink / slug (you can switch the columns on and off individually like normal)

View Code →

[Performance] Remove Wordpress bloat - Remove WP headers, RSS, Dashicons, Emojis

View Code →

[WP Top Admin-Bar] Add Links to wp-admin pages / Kadence Elements and Kadence Cloud (opens as new pages)

View Code →

[WP Top Admin-Bar] Clean up the Top Admin Bar

View Code →

Maintenance Page redirection snippet

View Code →

Exclude posts from a specific category

View Code →

[Condition] WPML Language

View Code →

Divi Flashing Unstyled Content On Page Load

View Code →

Add "Plugins" link to Admin top bar

View Code →

Remove Comments from Frontend and Admin Area

View Code →

Blocks test / numeric usernames / disposable emails from registering in woocommerce and wordpress - 2nd release

View Code →

Deregister WPCodeBox from the Tools menu

View Code →

Add LOGO with external link, that opens in new window, to the top of the left Admin Menu in Wordpress

View Code →

Add LOGO with external link to the top of the left Admin Menu in Wordpress

View Code →

Add WP Admin options menu to block disposable email addresses WIP

View Code →

Hide admin notices for everyone except a specific username.

View Code →

Minimal Static HTML caching

View Code →

Add Product Taxonomy Term to Body

View Code →

Inserting CSP and other security headers into WordPress

View Code →

Show/hide auxiliary columns in WPCB editor UI

View Code →

Change Studio Cart Url

View Code →

shortcode to implement the plugin "ACF Photo Gallery Field" (a bare bone acf pro alternative)

View Code →

block temporary email providers

View Code →

auto categorize new or updated posts depending on words in their title

View Code →

preload feature image

View Code →

Disable native lazy loading on images with a class of "no-lazy"

View Code →

[Oxygen Builder] Admin Bar Menus to directly open Pages, Posts & Templates with Oxygen

View Code →

Add Post ID Admin Column (for posts and pages)

View Code →

Change HTML LANG attribute

View Code →

Cache Gravatar - AI Generated, not tested

View Code →

WordPress Admin Dark mode

View Code →

Customize WordPress Login

View Code →

Dmitrii code snippet

View Code →

Filter Table (hide table wrapper if no result is found) - JavaScript

View Code →

Filter Table (hide table wrapper if no result is found) - JavaScript

View Code →

Table filter JS

View Code →

Adds a link in the adminbar to hide the list of WPCodeBox snippets

View Code →

Cloudflare Turnstile CSS customization for WP login screen

View Code →

Cloudflare Turnstile explicit rendering script

View Code →

Back to top JS

View Code →

Make Room in WP Admin Bar

View Code →

Show/Hide New/Edit Snippet and Snippet Navigator Panels via keyboard shortcuts

View Code →

Make WPCodeBox Full Width (Mod)

View Code →

A little button making the WPCodeBox editor full width

View Code →

Disable theme editing from dashboard

View Code →

Remove menu items for role(s)

View Code →

[Oxygen Condition] Has Oxygen Content

View Code →

Replace FSE WordPress Exit Logo with your own PNG

View Code →

Add a custom Dashboard Widget for your clients

View Code →

Remove WordPress Logo + Link in Admin Menu Bar

View Code →

Remove Dashboard Widgets

View Code →

Remove Admin Menu Items

View Code →

Rename "Howdy," to something else

View Code →

Disable WordPress comments without a plugin

View Code →

Redirect to custom URL after login (my-account in this case)

View Code →

Display a Hero Section, Page Title and Subtitle

View Code →

Allow SVG uploads in WordPress

View Code →

WPCodeBox Bash output on the right

View Code →

Add acf image custom column to admin posts and move column to desired position

View Code →

Add custom image column to admin posts

View Code →

[Condition] FluentCRM LIST Condition for Breakdance Builder

View Code →

[Condition] FluentCRM TAG Condition for Breakdance Builder

View Code →

[Condition] Password Protect Sections for Breakdance Builder

View Code →

Overwrite translation

View Code →

Redirect user to certain page if not logged in

View Code →

Add classes to <body>: Browser, page slug, post type

View Code →

Customize WordPress email sender name and address

View Code →

Remove Comments Feature

View Code →

Code Snippet that executes once per WooCommerce Order

View Code →

Update canonical URL

View Code →

Add an order number search field to the WP Admin top bar

View Code →

Disable all Elementor Pro widgets from showing in the editor

View Code →

Add shortcodes for Site Name, Site URL and Current Year

View Code →

Replace any string in WordPress

View Code →

Disable WordPress Admin Notices

View Code →

Output WooCommerce Endpoint Content

View Code →

WOO Custom End Point

View Code →

Remove F%^king fragments

View Code →

remove price span

View Code →

Show when scrolling down and hide when scrolling up (Custom sticky header for Elementor)

View Code →

PHP Info Test

View Code →

Add Dropdown Pages Links to WordPress Admin Bar

View Code →

Duplicate posts and pages without plugins

View Code →

Force oxygen assets version

View Code →

Deativate Gutenberg y CSS Gutenberg code

View Code →

HappyFiles.io Fancybox Gallery Shortcode

View Code →

WordPress Simple Images Functions

View Code →

Load a custom CSS file after Oxygen

View Code →

Enable WordPress maintenance mode

View Code →

Make WPCodeBox Full Width

View Code →

Add WPCodeBox in WP Admin Bar

View Code →