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.

101 Snippets
1.8k Favourites
203k Downloads

Disable New User Notifications

Prevent the admin user from getting new user notification emails.

500+

Block WP-Admin Area from Non-Administrators

Prevent users who are not administrators from accessing the wp-admin area.

400+

Limit the Number of Post Revisions

Reduce Database size by limiting post revisions to just 20 per post.

400+

Disable Lazy Load

Prevent WordPress from adding the lazy-load attribute to all images and iframes.

400+

Enable Shortcode Execution in WPCode HTML Snippets

Use this snippet to enable shortcode execution in WPCode HTML snippets.

400+

Disable Update Notice for Non-admin Users

Don't show WordPress version update notices to users that can't update the site.

400+

Disable Site Health

Completely hide the Site Health menu item and dashboard widget.

300+

Set a Minimum Word Count for Posts

Force your authors to write posts that have a minimum length.

300+

Remove WP Block Library CSS

Stop WordPress from loading the block editor CSS - especially useful if you don't use Gutenberg.

300+

Disable the WordPress Shortlink

Remove link rel shortlink from your site head area.

300+

Empty Admin Dashboard

Disable all dashboard widgets in the admin and the welcome panel.

300+

Disable REST API Links

Remove all head links to the REST API endpoints from the page source.

300+
1 3 4 5 6 7 9