Automattic\WooCommerce\Admin\Features
Features::exists()
Returns if a specific wc-admin feature exists in the current environment.
Метод класса: Features{}
Хуков нет.
Возвращает
true|false
. Returns true if the feature exists.
Использование
$result = Features::exists( $feature );
- $feature(строка) (обязательный)
- Feature slug.
Код Features::exists() Features::exists WC 9.7.1
public static function exists( $feature ) { $features = self::get_features(); return in_array( $feature, $features, true ); }