• Skip to main content
  • Skip to footer

WP Thinker

The WordPress Playground

  • Snippets
  • Best
  • Guides
  • Reviews

Code Snippets

Before editing your theme/configuration/plugin files, it is recommended to take a backup of the file you are changing. If things go wrong you can replace the edited file with the backed up file while diagnosing the issues. So, take a backup first.

  • The code snippets with the code icon (<>) should be placed in your theme's functions.php file or any other plugins that allows adding custom PHP codes.
  • The code snippets with the gear icon (⚙) should be placed in the wp-config.php file in the root folder of your WordPress installation.
  • You do not have to copy the comments (// this is a comment, ## this is also a comment ##, /** this is a multi-line comment */) for the code to work.

July 12, 2021 Milan

Register Custom Post Type

Add Google Analytics Code to WordPress

Disable Theme/Plugin Editor

Exclude Certain Posts or Pages from WordPress Search

Create a WordPress Shortcode

Set Minimum Word Count for Post Content

Limit the Title Length in WordPress

Enable SVG Support to WordPress

Create a WordPress Admin User

Change WordPress Post Excerpt Length

Change WordPress Author Slug

Disable WordPress Toolbar

Footer

WP Thinker is a website that publishes everything related to WordPress, Plugins, Themes, SEO, Blogging, etc.

  • Facebook
  • Twitter
  • Pinterest

Copyright © 2023 · WP Thinker

  • About Us
  • Advertise
  • Write for Us
  • Privacy Policy
  • Terms and Conditions
  • Contact Us
This website uses cookies to serve you better. By continuing to use this website, you agree to our cookie and Privacy Policy.