Plugin Dependencies Plugin Dependencies

Plugin Dependencies

Created by: Andy Fragen, Colin Stewart, Paul Biron

Rating:
Downloaded: 37k times

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

  • Plugin is a Dependency and Plugin needing Dependencies
  • Plugin with Dependencies
  • Plugin Dependencies tab
  • Search page with dependencies

Categories

Get New Themes & Resources