- Plugin Name: Plugin Dependencies
- Plugin URI: https://github.com/afragen/plugin-dependencies-tab
- Description: Parses 'Requires Plugins' header, add plugin install dependencies tab, and information about dependencies.
- Author: Andy Fragen
- License: MIT
- Network: true
- Requires at least: 5.2
- Requires PHP: 5.6
- Stable tag: master
Parses a 'Requires Plugins' header and adds a Dependencies tab in the plugin install page. If a requiring plugin does not have all it's dependencies installed and active, it will not activate.
My solution to #22316. Feature plugin version of PR #1724
-
Parses the Requires Plugins header that defines plugin dependencies using a comma separated list of wp.org slugs.
-
Displays a single admin notice with link to Plugins > Add New > Dependencies if not all plugin dependencies have been installed.
-
Adds a new view/tab to plugins install page ( Plugins > Add New ) titled Dependencies that contains plugin cards for all plugin dependencies.
-
This view also lists which plugins require which plugin dependencies in the plugin card, though that feature requires the filter below to function. 😅
-
In the plugins page, a dependent plugin is unable to be deleted or deactivated if the requiring plugin is active.
-
Plugin dependencies can be deactivated or deleted if the requiring plugin is not active.
-
Messaging in the plugin row description is inserted; as is data noting which plugins require the dependency.
-
If the dependency API data is not available a generic plugin card will be displayed in the Dependencies tab.
-
Ensures that plugins with unmet dependencies cannot be activated.