Automattic\WooCommerce\Internal\Features
FeaturesController::allow_enabling_features_with_incompatible_plugins
Sets a flag indicating that it's allowed to enable features for which incompatible plugins are active from the WooCommerce feature settings page.
Method of the class: FeaturesController{}
No Hooks.
Returns
null. Nothing (null).
Usage
$FeaturesController = new FeaturesController(); $FeaturesController->allow_enabling_features_with_incompatible_plugins(): void;
FeaturesController::allow_enabling_features_with_incompatible_plugins() FeaturesController::allow enabling features with incompatible plugins code WC 10.8.1
public function allow_enabling_features_with_incompatible_plugins(): void {
$this->force_allow_enabling_features = true;
}