8

I've collected a few plugins that each have specific functionality I need for what would otherwise be a single large plugin.

Is it possible to bundle these into a single installable zip?

  • Because its possible, doesn't mean it should be done. I don't see any logical reason to doing this. – sandrodz Feb 13 '18 at 20:32
12
  1. Go through each plugin file and remove the plugin header.
  2. Create a loader.php file.

Something like this:

<?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';
  • 1
    OK, I've created a folder called "my-plugin-collection" and I've copied each of the plugin folders into that folder. Next, I create your loader.php file and reference each of the plugin folder's plugin.php files, correct? Hoping this works even when the plugins are complex and have subfolders... – Scott B Jan 6 '11 at 21:26
  • 1
    Note that any plugins combined in this manner will not get update notifications or be displayed within the main plugins list. If you use a WP management system like InfiniteWP or ManageWP, they will not be able to update the individual plugins either. – Jay Oct 19 '16 at 17:50

protected by fuxia Dec 18 '14 at 11:20

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.