Automattic\WooCommerce\Admin
Loader::is_feature_enabled() public WC 1.0
Устарела с версии 1.9.0. Больше не поддерживается и может быть удалена. Используйте
Features::exists( $feature )
.╳Returns if a specific wc-admin feature is enabled.
{} Это метод класса: Loader{}
Хуков нет.
Возвращает
true|false
. Returns true if the feature is enabled.
Использование
$result = Loader::is_feature_enabled( $feature );
- $feature(строка) (обязательный)
- Feature slug.
Список изменений
Устарела | С версии 1.9.0 | , use Features::exists( $feature ) |
Код Loader::is_feature_enabled() Loader::is feature enabled WC 5.2.2
public static function is_feature_enabled( $feature ) {
return Features::exists( $feature );
}