You're using WPCode Lite. To unlock more features consider upgrading to Pro.

Check for updates to your private library snippets.

Add Snippet

To speed up the process you can select from one of our pre-made library, or you can start with a blank snippet and create your own. Have a suggestion for new snippet? We’d love to hear it!
  • Add Your Custom Code (New Snippet)

    Choose this blank snippet to start from scratch and paste any custom code or simply write your own.

  • Generate snippet using AI

    pro

    Generate a new snippet specific to your needs leveraging the power of WPCode's AI integration.

  • Allow SVG Files Upload

    Add support for SVG files to be uploaded in WordPress media.

    Use snippet
  • Completely Disable Comments

    Disable comments for all post types, in the admin and the frontend.

    Use snippet
  • Disable Attachment Pages

    Hide the Attachment/Attachments pages on the frontend from all visitors.

    Use snippet
  • Disable Automatic Updates

    Use this snippet to completely disable automatic updates on your website.

    Use snippet
  • Disable Automatic Updates Emails

    Stop getting emails about automatic updates on your WordPress site.

    Use snippet
  • Disable Gutenberg Editor (use Classic Editor)

    Switch back to the Classic Editor by disablling the Block Editor.

    Use snippet
  • Disable The WP Admin Bar

    Hide the WordPress Admin Bar for all users in the frontend.

    Use snippet
  • Disable Widget Blocks (use Classic Widgets)

    Use the classic interface instead of Blocks to manage Widgets.

    Use snippet
  • Disable WordPress REST API

    Easily disable the WP REST API on your website with this snippet.

    Use snippet
  • Disable XML-RPC

    On sites running WordPress 3.5+, disable XML-RPC completely.

    Use snippet
  • Duplicate Post/Page Link

    Duplicate posts, pages or any post type with 1-click by adding a duplicate link in...

  • Remove WordPress Version Number

    Hide the WordPress version number from your site's frontend and feeds.

    Use snippet
Create custom snippets for your website easily by filling out a form. You can also use this form to update your snippets later, without having to write or edit any code.
  • Admin Bar Menu

    Add a custom admin bar menu with links or content.

  • Article Schema

    Generate schema markup for articles, blog posts, and news articles.

  • Book Schema

    Generate schema markup for books, including novels, textbooks, and publications.

  • Car Schema

    Generate schema markup for cars and vehicles to enhance search results.

  • Contact Methods

    Add additional contact methods to WordPress user profiles.

  • Course Schema

    Generate schema markup for courses to enhance search results.

  • Dataset Schema

    Generate schema markup for datasets to enhance search results.

  • Event Schema

    Generate schema markup for conferences, concerts, exhibitions, and other events.

  • FAQ Schema

    Generate schema markup for Frequently Asked Questions to enhance search results.

  • Fact Check Schema

    Generate schema markup for fact-checking content to enhance search results.

  • Hooks

    Generate a snippet for an action or a filter using any available hook.

  • How-To Schema

    Generate schema markup for step-by-step instructions and tutorials.

  • Job Posting Schema

    Generate schema markup for job listings and employment opportunities.

  • Movie Schema

    Generate schema markup for movies to enhance search results.

  • Music Schema

    Generate schema markup for music content to enhance search results.

  • Navigation Menu

    Generate a snippet to register new navigation menus for your website.

  • Person Schema

    Generate schema markup for people to enhance search results.

  • Post Status

    Use this tool to generate a custom post status for your posts.

  • Post Type

    Use this tool to generate a custom post type for your website.

  • Product Review Schema

    Generate schema markup for product reviews to enhance search results.

  • Product Schema

    Generate schema markup for products to enhance search results.

  • Recipe Schema

    Generate schema markup for cooking recipes and food preparation instructions.

  • Register Scripts

    Generate a snippet to load JavaScript scripts using wp_register_script.

  • Register Stylesheets

    Generate a snippet to load CSS stylesheets using wp_register_style.

  • Schedule a Cron Job

    Generate a snippet to schedule a recurring event using the WordPress cron.

  • Service Schema

    Generate schema markup for services to enhance search results.

  • Sidebar

    Generate a snippet to register a sidebar for your widgets.

  • Software Schema

    Generate schema markup for software applications to enhance search results.

  • Taxonomy

    Create a custom taxonomy for your posts using this generator.

  • Video Schema

    Generate schema markup for videos to enhance search results.

  • WP_Query

    Generate a snippet using WP_Query to load posts from your website.

  • Widget

    Generate a snippet to register a custom sidebar widget for your website.

Easily add code snippets that extend other plugins on your site from a library maintained by the plugin authors.

You don't have any plugins installed that extend the WPCode library, install any of the plugins below to start expanding the WPCode snippet library:

All in One SEO Pack

All in One SEO Pack

Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic.

WPForms

WPForms

The Best Drag & Drop WordPress Form Builder.

Easy Digital Downloads

Easy Digital Downloads

The easiest way to sell digital products with WordPress.

Charitable

Charitable

Raise more money for your cause with the most powerful WordPress donation and fundraising plugin.

WP Simple Pay

WP Simple Pay

Start accepting one-time and recurring payments on your WordPress site without setting up a shopping cart.

  • Add an Edit Post Link to Archives

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

  • Add Featured Images to RSS Feeds

    Extend your site's RSS feeds by including featured images in the feed.

  • Add the Page Slug to Body Class

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

  • Allow SVG Files Upload

    Add support for SVG files to be uploaded in WordPress media.

  • Automatically Link Featured Images to Posts

    Wrap featured images in your theme in links to posts.

  • Change "Howdy Admin" in Admin Bar

    Customize the "Howdy" message in the admin bar.

  • Change Admin Panel Footer Text

    Display custom text in the admin panel footer with this snippet.

  • Change Excerpt Length

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

  • Change Read More Text for Excerpts

    Customize the "Read More" text that shows up after excerpts.

  • Completely Disable Comments

    Disable comments for all post types, in the admin and the frontend.

  • Delay Posts in RSS Feeds

    Add a delay before published posts show up in the RSS feeds.

  • Disable Attachment Pages

    Hide the Attachment/Attachments pages on the frontend from all visitors.

  • Disable Automatic Updates

    Use this snippet to completely disable automatic updates on your website.

  • Disable Automatic Updates Emails

    Stop getting emails about automatic updates on your WordPress site.

  • Disable Gutenberg Editor (use Classic Editor)

    Switch back to the Classic Editor by disablling the Block Editor.

My Library is a PRO Feature

Upgrade to WPCode PRO today and save your snippets in your private library directly from the plugin and import them with 1-click on other sites.

  • Save your snippets to your library
  • 1-click import snippets from you library
  • Deploy new snippets from your account
  • Update snippets across all your sites
  • Set up new websites faster
  • Edit snippets in the WPCode Library

Preview Snippet

    New Notifications (0)

    Notifications (0)