Automattic\WooCommerce\Admin\Features
Features::exists
Returns if a specific wc-admin feature exists in the current environment.
Method of the class: Features{}
No Hooks.
Returns
true|false. Returns true if the feature exists.
Usage
$result = Features::exists( $feature );
- $feature(string) (required)
- Feature slug.
Features::exists() Features::exists code WC 10.3.6
public static function exists( $feature ) {
$features = self::get_features();
return in_array( $feature, $features, true );
}