1. Home
  2. Docs
  3. Custom Code Samples
  4. Creating a Site-specific plugin

Creating a Site-specific plugin

A Site-specific plugin allows you to add custom code snippets to your website that will persist even though you update your theme. They are better than using the functions.php file of your child theme in most cases because they are more modular and allow you to disable the code plugin by simply deactivating the plugin.

To create a Site-specific plugin you can use the following plugin: https://wordpress.org/plugins/pluginception/ once you’ve installed and activated the plugin head over to Plugins->Create A New Plugin to create a new plugin.

Enter your desired plugin name and description and then paste in the code snippet you wish to implement on your website. After saving your changes head over to the plugins area of your WordPress dashboard and make sure your Site-specific plugin is activated.

Was this article helpful to you? Yes No