Skip to content

S466531257BOSS/wp-plugin-dependencies

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plugin Dependencies

Plugin dependency management

Contributors: scribu
Tags: plugin, dependency
Requires at least: 3.1
Tested up to: 3.3
Stable tag: 1.2.1
License: GPLv2 or later

Description

This meta-plugin allows regular plugins to specify other plugins that they depend upon.

Example:

/* Plugin Name: BuddyPress Debug Depends: BuddyPress, Debug Bar */

What this does:

  • Disables activation of BuddyPress Debug until both BuddyPress and Debug Bar are already activated.
  • When either BuddyPress or Debug Bar are deactivated, BuddyPress Debug will also be deactivated.

Links: Plugin News | Author's Site

Build Status

Frequently Asked Questions

Error on activation: "Parse error: syntax error, unexpected..."

Make sure your host is running PHP 5. The only foolproof way to do this is to add this line to wp-config.php (after the opening <?php tag):

var_dump(PHP_VERSION);

What happens if a user doesn't have Plugin Dependencies installed?

Nothing. The Depends: header will simply be ignored.

Can I have grand-child plugins?

Yes, the dependency chain can go as deep as you want.

Defining virtual packages

Say you have some useful functions that you would like to package up as a library plugin:

/* Plugin Name: Facebook Lib Provides: lib-facebook */

Now, dependant plugins can specify 'lib-facebook' as a dependency:

/* Plugin Name: Cool Facebook Plugin Depends: lib-facebook */

Besides being more robust, the Provides: header allows multiple plugins to implement the same set of functionality and be used interchangeably.

Screenshots

Changelog

1.2.1

1.2

  • added ability to use plugin names as dependencies
  • more info

1.1

  • added 'Provides:' header
  • replaced 'Dependencies:' with 'Depends:'
  • more info

1.0.1

  • fixed critical bug when not running MultiSite
  • better network activation handling

1.0

About

WordPress plugin dependency management.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors