Automattic\WooCommerce\Admin\Features

Features::exists()public staticWC 1.0

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

Метод класса: Features{}

No Hooks.

Return

true|false. Returns true if the feature exists.

Usage

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

Код Features::exists() WC 7.1.0

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