About

WPCode makes it easy and safe to add custom WordPress features through code snippets, 
so you can reduce the number of plugins on your site.

154 Snippets
3.2k Favourites
374k Downloads

Smooth Scrolling for Anchor Links

Enables smooth scrolling for all on-page links with #.

300+

Disable Posts in Admin

Hide the Posts menu from the admin if you don't need the default Posts post type.

300+

Disable Legacy CSS

Stop loading styles for recent comments and classic gallery shortcode.

300+

Special Offer Pop-up

Display a small pop-up in the bottom-right of the page.

300+

Allow Only Logged-In Users

Make your site private just for logged-in users.

300+

Hide "Remember Me"

Hide the "Remember Me" checkbox on the login page.

300+

Post Meta Debugger

Add a metabox that lists all the custom fields/meta values for a post/page for easy debugging.

300+

Disable WordPress 6.5 Font Library

Deactivate the font library feature added in WordPress 6.5.

300+

Reorder Admin Menu Items

Control the order of the admin menu items with a simple snippet.

300+

Auto-logout inactive users

Automatically logout users after 10 minutes.

300+

Disable Automatic Trash Emptying

Prevent WordPress from automatically deleting trashed posts after 30 days.

300+

Disable Categories and Tags

Disable the default taxonomies for Posts (Categories, Tags).

300+
1 7 8 9 10 11 13