WC_Admin_Notices::is_plugin_active()protected staticWC 1.0

Wrapper for is_plugin_active.

Method of the class: WC_Admin_Notices{}

No Hooks.

Return

true|false.

Usage

$result = WC_Admin_Notices::is_plugin_active( $plugin );
$plugin(string) (required)
Plugin to check.

WC_Admin_Notices::is_plugin_active() code WC 8.9.0

protected static function is_plugin_active( $plugin ) {
	if ( ! function_exists( 'is_plugin_active' ) ) {
		include_once ABSPATH . 'wp-admin/includes/plugin.php';
	}
	return is_plugin_active( $plugin );
}