I have a couple of pluins which I use every time I create a new WP-page.
Is there a way to implement these plugins as part of my theme?
I have searched for a soloution for a couple of hours now, without any luck – hope someone can help 🙂
Leave a Reply
You must be logged in to post a comment.
First, I would recommend against it.
I have a package of plugins that I use on almost all of our websites (both public and internal plugins)… and plugins should really remain plugins. Deploying a package of plugins is not hard or time consuming and only needs to be done once per project.
By integrating them into a theme, you lose the ability to activate/deactivate them if necessary, nor can you update them. Please consider that first.
Ok, so to incorporate them into your theme, this is what you would do…
Please also take note that you may have problems with activation/deactivation functions… so be careful.
You can have a look at https://github.com/thomasgriffin/TGM-Plugin-Activation
And this: How to make plugin required in a wp theme without using php conditional statements when calling an individual function from that plugin?