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