Automattic\WooCommerce\Internal\Features
FeaturesController::should_skip_compatibility_checks
Check if the compatibility checks should be skipped for a given feature.
Method of the class: FeaturesController{}
No Hooks.
Returns
true|false. TRUE if the compatibility checks should be skipped.
Usage
$FeaturesController = new FeaturesController(); $FeaturesController->should_skip_compatibility_checks( $feature_id ): bool;
- $feature_id(string) (required)
- The feature id to check.
Changelog
| Since 10.3.0 | Introduced. |
FeaturesController::should_skip_compatibility_checks() FeaturesController::should skip compatibility checks code WC 10.3.3
public function should_skip_compatibility_checks( string $feature_id ): bool {
$features = $this->get_feature_definitions();
return ! empty( $features[ $feature_id ]['skip_compatibility_checks'] );
}