Combining plugins, is it ok ?
I have been delving into how plugins work and are constructed. Made my own based on parts of other plugins I liked and or modified them to my needs. I thought about this one I am making which I would like to expand.
I could combine them them via :
Go through each plugin file and remove the plugin header.
Create a loader.php file.
?php /* Plugin Name: Combined Plugin Description: Contains plugin a, plugin b and plugin c */ include dirname(__FILE__) . '/plugin-a.php'; include dirname(__FILE__) . '/plugin-b.php'; include dirname(__FILE__) . '/plugin-c.php';
But this just calls the plugins from their whereabouts , Could I remove headers and just use the parts of the plugins and put them in the same file? Like a Master plugin guess. And also call that file from the theme php, I am not sure one can package plugins with themes.