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.
Return
true|false
. Returns true if the feature exists.
Usage
$result = Features::exists( $feature );
- $feature(string) (required)
- Feature slug.
Features::exists() Features::exists code WC 9.7.1
public static function exists( $feature ) { $features = self::get_features(); return in_array( $feature, $features, true ); }