Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshbetz/wp-plugin-dependencies
https://github.com/joshbetz/wp-plugin-dependencies
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/joshbetz/wp-plugin-dependencies
- Owner: joshbetz
- License: gpl-2.0
- Created: 2015-11-25T19:09:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-01T19:40:38.000Z (almost 9 years ago)
- Last Synced: 2023-03-14T03:00:30.914Z (over 1 year ago)
- Language: PHP
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WP Plugin Dependencies
Based on [wpcom_vip_load_plugin](https://vip.wordpress.com/functions/wpcom_vip_load_plugin/).
## Background
Plugin dependencies don't exist in WordPress. This is how we solve that problem on [WordPress.com VIP](https://vip.wordpress.com).
## Installation
Put this in `wp-content/mu-plugins` to ensure the functions defined here always exist.
## Usage
`wppd_require_plugin( $plugin, $version )` - Includes required plugin or shows an error in wp-admin if it's not available.