Automattic\WooCommerce\Admin\Features

Features::exists()public staticWC 1.0

Returns if a specific wc-admin feature exists in the current environment.

Method of the class: Features{}

No Hooks.

Return

true|false. Returns true if the feature exists.

Usage

$result = Features::exists( $feature );
$feature(string) (required)
Feature slug.

Features::exists() code WC 9.7.1

public static function exists( $feature ) {
	$features = self::get_features();
	return in_array( $feature, $features, true );
}