Automattic\WooCommerce\Internal\Features
FeaturesController::should_skip_compatibility_checks
Check if the compatibility checks should be skipped for a given feature.
Метод класса: FeaturesController{}
Хуков нет.
Возвращает
bool. TRUE if the compatibility checks should be skipped.
Использование
$FeaturesController = new FeaturesController(); $FeaturesController->should_skip_compatibility_checks( $feature_id ): bool;
- $feature_id(строка) (обязательный)
- The feature id to check.
Список изменений
| С версии 10.3.0 | Введена. |
Код FeaturesController::should_skip_compatibility_checks() FeaturesController::should skip compatibility checks WC 11.3.0
public function should_skip_compatibility_checks( string $feature_id ): bool {
$features = $this->get_feature_definitions();
return ! empty( $features[ $feature_id ]['skip_compatibility_checks'] );
}