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.

156 Snippets
3.3k Favourites
412k Downloads

Add the Page Slug to Body Class

Add the page slug to the body class for better styling.

3.0k

Disable Comment Form Website URL

Remove the Website URL field from the Comments form.

3.0k

Automatically Link Featured Images to Posts

Wrap featured images in your theme in links to posts.

3.0k

Add an Edit Post Link to Archives

Make it easier to edit posts when viewing archives. Or on single pages. If you...

2.9k

Dynamic Year Copyright Shortcode

This snippet adds an easy-to-use shortcode to display the copyright symbol with the current year.

2.4k

Remove the WordPress Logo From the Admin Bar

Hide the WordPress logo in the admin bar for all users.

2.3k

Change Excerpt Length

Update the length of the Excerpts on your website using this snippet.

2.3k

Disable Self Pingbacks

Prevent WordPress from automatically creating pingbacks from your own site.

2.2k

Disable Login by Email

Force your users to login only using their username.

2.2k

Block WP-Admin Area from Non-Administrators

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

2.0k

Remove Query Strings From Static Files

Use this snippet to remove query string from CSS & JS files and improve performance ratings.

1.9k

Add Featured Image Column

Display the featured image in the list of posts in the admin.

1.9k
1 2 3 4 5 13