Benefits of code snippet plugins vs functions.php

[ad_1]

I built a plugin recently for a client that is now having issues. One of their employees has moved a lot of my original code from the \`functions.php\` to a code snippet plugin. I think this is causing the problems with one of the buttons I created to use my plugin, but I need to be absolutely certain before I go to him and tell him to put it back.

So, are there any real benefits to putting a ton of code into any code snippet plugin versus leaving it in \`functions.php\`?

[ad_2]
2 Comments
  1. In some cases. Primarily to test it out or to add it to systems or themeless page builders (Oxygen). Its often a quicker way to work on it and or share it between sites… But, functions that a theme depends on to work properly should be in the themes function.php file IMHO.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer