1.

How to check if any plugin is active in WordPress?

Answer»

With the METHOD is_plugin_active() we can check any PARTICULAR plugin is ACTIVE or not.

How to check

include_once( ABSPATH . 'wp-admin/includes/plugin.php' );

if ( is_plugin_active( 'plugin-directory/plugin-file.php' ) ) {
   // ACTIVATED
}



Discussion

No Comment Found