Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 9 down vote accepted
  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';
share|improve this answer
    
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
    
Works like a charm. Thanks sribu! –  Scott B Jan 6 '11 at 22:04

protected by toscho Dec 18 at 11:20

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

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.