WordPress Plugin vs Functions.php file (Which is better?)


WordPress Plugin vs Functions.php file (Which is better?)
Amanda Ray

Most of the articles I’ve read have been about whether to put your own code (or the code you’re copying from a tutorial) into functions.php or a plugin. This one seems to focus more on the question of whether to find an existing plugin or add code to functions.php. The point is well made (and I’ve made it myself) that if your code and a plugin author’s code are essentially the same, they will put exactly the same load on your site. But whether you write the code or copy the code from elsewhere, if you want it to be available to other themes, it should go into a plugin.

WordPress Plugin vs Functions.php file (Which is better?)
Ophelia Mauro

We are often asked by users whether they should install a WordPress plugin or add code to their theme’s functions.php file? Some users believe that adding code is always the better method for performance, but that’s actually not true. In this article, we will explain the pros and cons of WordPress plugin vs functions.php file and which method is better.

Which is better: plugin or functions.php?
Grady Harris

Are users should install a WordPress plugin or add code to their theme’s functions.php file? Some users believe that adding code is always the better method for performance, but that’s actually not true. In this article, we will explain the pros and cons of WordPress plugin vs functions.php file and which method is better.

ManageWP.org
Yee Oconnor

As with so many posts of this type, the title sets up a false dichotomy. Some code belongs in a plugin, and as long as the code quality is the same, it doesn’t matter whether it’s your plugin or someone else’s. Some code belongs in a theme, whether you add it or the original theme developer puts it there. The article does do a good job of explaining the differences between these two possible places to add your custom code.

Be the first to comment

Leave a Reply

Your email address will not be published.


*