Plugin dependency management
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
Nothing. The Depends: header will simply be ignored.
Yes, the dependency chain can go as deep as you want.
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.
Requires: 3.1 or higher
Compatible up to: 4.0.13
Last Updated: 2 years ago
Active Installs: 1,000+
Got something to say? Need help?