Title: Plugin Dependencies
Last modified: August 20, 2016

---

# Plugin Dependencies

 *  Resolved [elyobo](https://wordpress.org/support/users/elyobo/)
 * (@elyobo)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-dependencies/)
 * One potentially useful feature for plugin dependencies would be to support _conflicting_
   plugins, e.g. plugin X can be enabled _or_ plugin Y can be enabled, but not both.
   In the dependency sense, plugin X requires _not_ plugin Y and vice versa.
 * A related concept could be applied to normal dependencies, where plugin X requires
   _either_ plugin Y _or_ plugin Z.
 * [http://wordpress.org/extend/plugins/plugin-dependencies/](http://wordpress.org/extend/plugins/plugin-dependencies/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-dependencies/#post-2263868)
 * Yes, this is already possible with the [development version](http://downloads.wordpress.org/plugin/plugin-dependencies.zip),
   by using the “Provides:” header.
 *  Thread Starter [elyobo](https://wordpress.org/support/users/elyobo/)
 * (@elyobo)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-dependencies/#post-2263876)
 * Sounds great, are there docs for the headers somewhere? I take it that Provides:
   would implement the second feature, is there anything that implements the conflicting
   feature?
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-dependencies/#post-2263880)
 * No docs yet, since it’s a development version. I should try to release it though,
   as it’s basically done.
 *  [RichardWPG](https://wordpress.org/support/users/richardwpg/)
 * (@richardwpg)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-dependencies/#post-2263923)
 * It will be great to be able to try it out
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-dependencies/#post-2263941)
 * Done: [http://scribu.net/wordpress/plugin-dependencies/pd-1-1.html](http://scribu.net/wordpress/plugin-dependencies/pd-1-1.html)
 *  Thread Starter [elyobo](https://wordpress.org/support/users/elyobo/)
 * (@elyobo)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-dependencies/#post-2264076)
 * Only come across one issue so far, line 164 in plugin-dependencies.php doesn’t
   check that the array index exists before using it, throwing out a pile of notices
   for those that aren’t suppressing them. This then blocks the redirect header 
   so we get a pile of notices on screen and nothing else.
 * Simple fix, either suppress errors or check first, e.g.
 * `$deps = @self::$dependencies[ $dep ];`
 * or
 * `$deps = isset(self::$dependencies[ $dep ]) ? self::$dependencies[ $dep ] : array();`
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-dependencies/#post-2264078)
 * That shouldn’t happen. Please paste the error messages and the header of the 
   plugin(s) that are causing them.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Plugin Dependencies’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/plugin-dependencies.svg)
 * [Plugin Dependencies](https://wordpress.org/plugins/plugin-dependencies/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/plugin-dependencies/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/plugin-dependencies/)
 * [Active Topics](https://wordpress.org/support/plugin/plugin-dependencies/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/plugin-dependencies/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/plugin-dependencies/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [scribu](https://wordpress.org/support/users/scribu/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-dependencies/#post-2264078)
 * Status: resolved