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.