https://github.com/wordpress/wp-plugin-dependencies
WordPress Feature Project: Plugin Dependencies
https://github.com/wordpress/wp-plugin-dependencies
Last synced: 11 months ago
JSON representation
WordPress Feature Project: Plugin Dependencies
- Host: GitHub
- URL: https://github.com/wordpress/wp-plugin-dependencies
- Owner: WordPress
- License: mit
- Created: 2022-03-07T21:22:36.000Z (over 4 years ago)
- Default Branch: trunk
- Last Pushed: 2024-02-10T01:21:42.000Z (over 2 years ago)
- Last Synced: 2025-01-29T08:11:25.624Z (over 1 year ago)
- Language: PHP
- Homepage: https://make.wordpress.org/core/2022/02/24/feature-project-plugin-dependencies/
- Size: 2.43 MB
- Stars: 69
- Watchers: 14
- Forks: 9
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# WordPress Feature Project: Plugin Dependencies
* Contributors: afragen, costdev, pbiron
* Description: Parses 'Requires Plugins' header, add plugin install dependencies tab, and information about dependencies.
* License: MIT
* Network: true
* Requires at least: 6.0
* Requires PHP: 5.6
## Description
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](https://make.wordpress.org/core/2022/02/24/feature-project-plugin-dependencies/)
My solution to [#22316](https://core.trac.wordpress.org/ticket/22316). Feature plugin version of [PR #3032](https://github.com/WordPress/wordpress-develop/pull/3032)
* Parses the **Requires Plugins** header that defines plugin dependencies using a comma separated list of wp.org slugs.
* 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.
* 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.