How to make a plugin require another plugin?

Posted by Prem Tiwari | Updated on

Try this out, it’s commented, so that should help you understand it.

Notice that I’m not using deactivate_plugins( $plugin ); as for some reason it does not work. So I used wp_die to cancel the activation redirection and inform the user.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers