Parses a 'Requires Plugins' header and adds a Dependencies tab in the plugin install page.…
| Author: | Andy Fragen (profile at wordpress.org) |
| WordPress version required: | 6.4 |
| WordPress version tested: | 6.4.5 |
| Plugin version: | 3.0.4 |
| Added to WordPress repository: | 02-06-2022 |
| Last updated: | 10-02-2024
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
| Rating, %: | 100 |
| Rated by: | 3 |
| Plugin URI: | https://wordpress.org/plugins/wp-plugin-depen... |
| Total downloads: | 40 346 |
| Active installs: | 10+ |
![]() Click to start download |
|
Parses a ‘Requires Plugins’ header. If a requiring plugin does not have all its dependencies installed and active, it will not activate.
Make post for Plugin Dependencies Feature Project
Please open issues at WordPress/wp-plugin-dependencies issues
My solution to #22316. Feature plugin version of PR #3032
- Parses the Requires Plugins header that defines plugin dependencies using a comma separated list of wp.org slugs. To test, you will need to add the header and content to a plugin.
- 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.
- Ensures that plugins with unmet dependencies cannot be activated.
- Circular dependencies cannot be activated and an admin notice noting the circular dependencies is displayed.
- Ensures that plugins with unmet dependencies cannot be activated.
There are several single file plugins that may be used for testing in test-plugins/.
Pull Requests
PRs should be made against the develop branch.
