Bright Plugins is acquiring WordPress and WooCommerce plugins. Let's Connect

Add PHP Code Guide | Bright Plugins Docs

1 min read Updated April 20, 2026 By the Bright Plugins team

Occasionally, normally due to ‘filters’, you will need to add some snippets of custom PHP to get the desired results.

Using Code Snippet Plugin

The easiest way for less technical webmasters is to use a code snippet plugin.

We recommend WP Code plugin and publish all our code snippets on the WP Code Snippet Library.

Back to Code

Create a custom code plugin

It might sound daunting writing a plugin but it is not that hard. Find your wp-content/plugins directory and create a subfolder with any name you fancy, e.g. wp-content/plugins/my-custom-code and in that folder create a file called index.php and add the following code:

Add your custom code to the file, save and then go to plugins and activate.

Back to Code

Updated on April 20, 2026 · Need help? Open a support ticket