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
add comment

1 Answer

up vote 6 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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