is_plugin_active function doesn’t exist

Posted by Prem Tiwari | Updated on

That’s because the file in which is_plugin_active() is defined – wp-admin/includes/plugin.php – is only loaded in the admin, after your plugin is loaded.

Thus, you can only call it after 'admin_init' has fired:

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