Automattic\WooCommerce\Admin\Features

Features::is_enabled()public staticWC 1.0

Check if a feature is enabled.

Method of the class: Features{}

No Hooks.

Return

true|false.

Usage

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

Features::is_enabled() code WC 7.1.0

public static function is_enabled( $feature ) {
	$available_features = self::get_available_features();
	return in_array( $feature, $available_features, true );
}