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.

144 Snippets
2.7k Favourites
292k Downloads

Add basic Open Graph Tags

Add OG tags for social media in your posts and pages.

50+

Auto-logout inactive users

Automatically logout users after 10 minutes.

40+

Display Random Posts

Show random posts anywhere on your site.

30+

Custom Default Avatar

Use a custom image for the default avatar.

20+

Prevent Copy Paste

This JavaScript snippet prevents right-click and copy events on the frontend

20+

Auto-Collapse Long Comments

Add a "Read More" button for long comments for better layouts.

20+

WPCode Add New Snippet Skip Library Screen

This snippet enables you to skip the snippet library screen when adding a new snippet in…

<10

Move WPCode Status Column

This snippet makes the status column the 2nd column in the admin list of snippets.

<10

Add WPCode Custom Field Smart Tag

Add a custom smart tag for the WPCode scripts metabox that outputs the value of a…

<10

Special Offer Pop-up

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

<10

Add custom CSS in the Admin

Use this snippet to add custom styles in the WordPress admin head. Add your CSS code…

<10

Disable Posts Post Type

This snippet hides the default Posts post type from the WordPress admin

<10
1 9 10 11 12