Easy way to add custom PHP code on your WordPress site

A short instruction on how to Use Code Snippets plugin to add custom PHP code snippets on your WordPress site without files modifications.

We highly not recommend modifying WordPress themes and plugins!

A next software update will wipe out all the modifications from the code, so you will be forced to restore them each time.

The most obvious way is to create a child theme or custom plugin for all your code mods and snippets. But it requires you have some knowledge in coding. And if you are not skilled enough or don't want to hire a specialist for a 1-minute job, so try following.

There is an easy way to add some code on your site though the admin dashboard - using the Code Snippets plugin.

It allows you to create separated PHP code blocks (snippets) like you create new posts. You can disable or enable each snippet whenever it needs.

So, whenever you need to create a new custom PHP code snippet, you can do the follo…

Read more about Easy way to add custom PHP code on your WordPress site
  • 0