├── test-plugins ├── circlea │ └── circlea.php ├── circleb │ └── circleb.php ├── test-dependencies2.php ├── test-dependencies1.php └── test-non-dot-org-dependencies │ ├── test-non-dot-org-dependencies.php │ ├── gravityforms.json │ └── git-updater.json ├── CHANGES.md ├── LICENSE ├── composer.json ├── README.md ├── readme.txt ├── languages └── advanced-plugin-dependencies.pot ├── plugin.php └── src └── advanced-plugin-dependencies.php /test-plugins/circlea/circlea.php: -------------------------------------------------------------------------------- 1 | =7.0" 21 | }, 22 | "require-dev": { 23 | "wp-coding-standards/wpcs": "^3.0.0" 24 | }, 25 | "config": { 26 | "allow-plugins": { 27 | "dealerdirect/phpcodesniffer-composer-installer": true 28 | } 29 | }, 30 | "scripts": { 31 | "make-pot": [ 32 | "wp i18n make-pot --headers='{\"Report-Msgid-Bugs-To\":\"https://github.com/afragen/advanced-plugin-dependencies/issues\"}' . languages/advanced-plugin-dependencies.pot" 33 | ], 34 | "wpcs": [ 35 | "vendor/bin/phpcbf .; vendor/bin/phpcs ." 36 | ] 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Advanced Plugin Dependencies 2 | 3 | * Contributors: afragen, costdev, pbiron 4 | * Description: Add plugin install dependencies tab, support for non dot org plugin cards, and information about dependencies. 5 | * License: MIT 6 | * Network: true 7 | * Requires at least: 6.5 8 | * Requires PHP: 8.0 9 | * Stable release: main 10 | 11 | ## Description 12 | 13 | An add-on the the Plugin Dependencies feature. Adds a Dependencies tab in the plugin install page. Adds support for non dot org plugin cards. If a requiring plugin does not have all its dependencies installed and active, it will not activate. 14 | 15 | * Plugins not in dot org may use the format `|` in the **Requires Plugins** header. `URI` should return a JSON compatible with the `plugins_api()` response or be a JSON file at the plugin root, `|.json`. 16 | * Adds a new view/tab to plugins install page ( **Plugins > Add New** ) titled **Dependencies** that contains plugin cards for all plugin dependencies. 17 | * Displays a single admin notice with link to **Plugins > Add New > Dependencies** if not all plugin dependencies have been installed. 18 | * If the dependency API data is not available a generic plugin card will be displayed in the Dependencies tab. 19 | 20 | There are several single file plugins that may be used for testing in `test-plugins/`. 21 | 22 | ## Pull Requests 23 | 24 | PRs should be made against the `develop` branch. 25 | -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | # Advanced Plugin Dependencies 2 | 3 | Contributors: afragen, costdev, pbiron 4 | Description: Add plugin install dependencies tab, support for non dot org plugin cards, and information about dependencies. 5 | License: MIT 6 | Network: true 7 | Requires at least: 6.5 8 | Requires PHP: 8.0 9 | Tested up to: 6.7 10 | Stable tag: main 11 | 12 | An add-on the the Plugin Dependencies feature. Adds a Dependencies tab in the plugin install page. Adds support for non dot org plugin cards. 13 | 14 | ## Description 15 | 16 | An add-on the the Plugin Dependencies feature. Adds a Dependencies tab in the plugin install page. Adds support for non dot org plugin cards. If a requiring plugin does not have all its dependencies installed and active, it will not activate. 17 | 18 | * Plugins not in dot org may use the format `|` in the **Requires Plugins** header. `URI` should return a JSON compatible with the `plugins_api()` response or be a JSON file at the plugin root, `|.json`. 19 | * Adds a new view/tab to plugins install page ( **Plugins > Add New** ) titled **Dependencies** that contains plugin cards for all plugin dependencies. 20 | * Displays a single admin notice with link to **Plugins > Add New > Dependencies** if not all plugin dependencies have been installed. 21 | * If the dependency API data is not available a generic plugin card will be displayed in the Dependencies tab. 22 | 23 | There are several single file plugins that may be used for testing in `test-plugins/`. 24 | 25 | ## Changelog 26 | 27 | ## Pull Requests 28 | 29 | PRs should be made against the `develop` branch. 30 | 31 | ## Screenshots 32 | 33 | 1. Admin notice with link to Dependencies tab 34 | 2. Add Plugin page Dependencies tab with plugin cards 35 | 3. Plugins page view 36 | -------------------------------------------------------------------------------- /test-plugins/test-non-dot-org-dependencies/gravityforms.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Gravity Forms", 3 | "slug": "gravityforms", 4 | "git": "github", 5 | "type": "plugin", 6 | "version": "2.6.6", 7 | "author": "Gravity Forms", 8 | "contributors": { 9 | "rocketgenius": { 10 | "display_name": "rocketgenius", 11 | "profile": "\/\/profiles.wordpress.org/rocketgenius", 12 | "avatar": "https:\/\/wordpress.org/grav-redirect.php?user=rocketgenius" 13 | } 14 | }, 15 | "requires": "4.0", 16 | "tested": "6.0", 17 | "requires_php": "5.6", 18 | "sections": { 19 | "description": "Easily create web forms and manage form entries within the WordPress admin.", 20 | "installation": "

Go to GravityForms.com to purchase and download the plugin.

", 21 | "changelog": "

2.6.6 | 2022-08-23<\/h3>