WPCodeBin
Beta

Public WordPress Code Snippets

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

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 →