How do I make my WordPress plugin activate only when a specific plugin (e.g. WooCommerce) is active?
I want my plugin to be activated only if other plugins (e.g. WooCommerce) are already active.
If this condition is not met, the plugin should show an administrator notification in the plugin list (e.g. reminding the user to activate WooCommerce). I tried using the plugin_row_meta
, but it is only displayed when the plugin is activated and does not enable administrator notifications. The plugin can still be activated even if the conditions are not met.
May I know how to realize this function?
- newest
- hottest
See only the author.