Automattic\WooCommerce\Admin\Features

Features::is_legacy_compatibility_feature │ private static │ WC 1.0

Checks if a feature slug is supported only by the legacy compatibility shim.

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

Хуков нет.

Возвращает

bool.

Использование

$result = Features::is_legacy_compatibility_feature( $feature );
$feature(строка) (обязательный)
Feature slug.

Код Features::is_legacy_compatibility_feature() WC 11.2.2

private static function is_legacy_compatibility_feature( $feature ) {
	return array_key_exists( $feature, self::get_legacy_feature_compatibility_defaults() );
}