Automattic\WooCommerce\Admin

Loader::is_feature_enabled()public staticWC 1.0

Deprecated from version 5.0.0. It is no longer supported and can be removed in future releases. Use Features::is_enabled( $feature ) instead.

Returns if a specific wc-admin feature is enabled.

Method of the class: Loader{}

No Hooks.

Return

true|false. Returns true if the feature is enabled.

Usage

$result = Loader::is_feature_enabled( $feature );
$feature(string) (required)
Feature slug.

Changelog

Deprecated Since 5.0.0 , use Features::is_enabled( $feature )

Loader::is_feature_enabled() code WC 9.1.2

public static function is_feature_enabled( $feature ) {
	wc_deprecated_function( 'is_feature_enabled', '5.0', '\Automattic\WooCommerce\Internal\Features\Features::is_enabled()' );
	return Features::is_enabled( $feature );
}