Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joshbetz/wp-plugin-dependencies


https://github.com/joshbetz/wp-plugin-dependencies

Last synced: 7 days ago
JSON representation

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.