Plugin Dependencies

Parses a 'Requires Plugins' header and adds a Dependencies tab in the plugin install page.…

Author:Andy Fragen, Colin Stewart, Paul Biron (profile at wordpress.org)
WordPress version required:6.4
WordPress version tested:6.4.4
Plugin version:3.0.4
Added to WordPress repository:02-06-2022
Last updated:10-02-2024
Rating, %:100
Rated by:3
Plugin URI:https://wordpress.org/plugins/wp-plugin-depen...
Total downloads:35 983
Active installs:10+
plugin download
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.


Screenshots
ChangeLog