Check If Required Plugin Is Active

$plugins = get_option(‘active_plugins’);
$required_plugin = ‘debug_queries/debug_queries.php’;
$debug_queries_on = FALSE;
if ( in_array( $required_plugin , $plugins ) ) {
$debug_queries_on = TRUE; // Example for yes, it’s active
}


Required Plugin Is Active