public static function is_wp_plugin_active( $plugin_file ) {
		$active_plugins = (array) get_option( 'active_plugins', array() );

		if ( is_multisite() ) {
			$active_plugins = array_merge( $active_plugins, get_site_option( 'active_sitewide_plugins', array() ) );
		}

		return in_array( $plugin_file, $active_plugins ) || array_key_exists( $plugin_file, $active_plugins );
	}
public static function is_wp_plugin_active( $plugin_file ) {
		$active_plugins = (array) get_option( 'active_plugins', array() );

		if ( is_multisite() ) {
			$active_plugins = array_merge( $active_plugins, get_site_option( 'active_sitewide_plugins', array() ) );
		}

		return in_array( $plugin_file, $active_plugins ) || array_key_exists( $plugin_file, $active_plugins );
	}
public static function is_wp_plugin_active ( $ plugin_file ) { $ active_plugins = ( array ) get_option ( 'active_plugins' , array ( ) ) ; if ( is_multisite ( ) ) { $ active_plugins = array_merge ( $ active_plugins , get_site_option ( 'active_sitewide_plugins' , array ( ) ) ) ; } return in_array ( $ plugin_file , $ active_plugins ) || array_key_exists ( $ plugin_file , $ active_plugins ) ; }
Checks if plugin is active. Needs to be enabled in deferred way.

@param string $plugin_file

@return bool
Checks if plugin is active . Needs to be enabled in deferred way .