How To Create WordPress Blog Specific Plugin

Learn how to create WordPress blog specific plugin

A WordPress Blog Specific Plugin is a site specific plugin, used to host theme independent code snippets.

You can use these snippets to add, modify, remove, and extent WordPress as well as non WordPress features.

Adding custom code snippets in your theme’s functions.php file is a Bad Habit. Discontinue immediately.

Follow Good Habits and place the code in WordPress Theme Independent Plugin.

kinsta managed wordpress hosting
Pay Yearly, Get 2 Months FREE

WordPress Blog Specific Plugin Benefits

  • To have a permanent place for all theme independent code.
  • To preserve settings even after theme upgrades.
  • To quickly change theme without losing any modifications.
  • To avoid WordPress white screen of death or errors.
  • Easy to maintain.

Steps To Create WordPress Blog Specific Plugin

  1. Create a new folder in the plugin directory named “WordPress Blog Specific Plugin”. /wp-content/plugins/wordPress-blog-specific-plugin/
  2. Then create a new file in this folder and save it as “wbsp.php”.
  3. Open this file and copy paste below code.
  4. On WordPress dashboard select Installed Plugins in Plugins menu and activate WordPress Blog Specific Plugin.
convertkit email marketing tool
14 Days Free Trial

Plugin Name: WordPress Blog Specific Plugin
Plugin URI:
Description: Place for all theme independent WordPress code snippets.
Author: Kunal A. Desai
Author URI:
License: GNU General Public License v2.0 (or later)
License URI:
This plugin comes WITHOUT ANY WARRANTY; without even the implied warranty of
// Prevent direct file access to this php file
defined( 'ABSPATH' ) or die( 'Direct file access disabled by' );
/* Add Code Snippets Below this Line */
/* Don't Add Code Snippets Below this Line */

Live Chat Software
Improve Sales & Service with Chat & Ticketing System

Moral of the story
From now on, place all theme independent code snippets in your WordPress Blog Specific Plugin.