Title: plugin dependencies: Required Plugins header
Last modified: October 30, 2026

---

# plugin dependencies: Required Plugins header

 *  Resolved [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [23 hours, 41 minutes ago](https://wordpress.org/support/topic/plugin-dependencies-required-plugins-header/)
 * Is there a way to say, “Plugin A depends on Plugin B or C”? In other words, either
   Plugin B or Plugin C (or both) must be activated in order to use Plugin A?

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

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [23 hours, 30 minutes ago](https://wordpress.org/support/topic/plugin-dependencies-required-plugins-header/#post-19059862)
 * > **Requires Plugins**: A comma-separated list of WordPress.org-formatted slugs
   > for its dependencies, such as `my-plugin` (`my-plugin/my-plugin.php` is not
   > supported). It does not support commas in plugin slugs. For more info read 
   > the related [dev note](https://make.wordpress.org/core/2024/03/05/introducing-plugin-dependencies-in-wordpress-6-5/).
 * [https://developer.wordpress.org/plugins/plugin-basics/header-requirements/](https://developer.wordpress.org/plugins/plugin-basics/header-requirements/)
 * So I don’t think this can be linked using “OR”. These are “AND” conditions. For
   example, take a look at how this data is analyzed here: [https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/plugin-install.php#L910](https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/plugin-install.php#L910)
 * To achieve your goal, I would skip this condition and move the check into the
   plugin. If either of the two plugins is missing, suspend the service and display
   a warning somewhere.
 *  Thread Starter [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [22 hours, 41 minutes ago](https://wordpress.org/support/topic/plugin-dependencies-required-plugins-header/#post-19059898)
 * Okay. Thank you.
 *  [Tecnología Geek](https://wordpress.org/support/users/yasminmultiservice809/)
 * (@yasminmultiservice809)
 * [14 hours, 33 minutes ago](https://wordpress.org/support/topic/plugin-dependencies-required-plugins-header/#post-19060147)
 * Not with the built-in system. The “Requires Plugins” header added in WordPress
   6.5 only supports AND — every plugin listed has to be active. For an either/or
   like yours you have to roll it yourself: hook into admin_init or plugins_loaded,
   check is_plugin_active() for B and for C, and if neither is active, show an admin
   notice and stop Plugin A from running (or deactivate it). It’s a short check,
   but there’s no core syntax for OR dependencies.

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-dependencies-required-plugins-header%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Tecnología Geek](https://wordpress.org/support/users/yasminmultiservice809/)
 * Last activity: [14 hours, 33 minutes ago](https://wordpress.org/support/topic/plugin-dependencies-required-plugins-header/#post-19060147)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
