Automattic\WooCommerce\Utilities
FeaturesUtil::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: FeaturesUtil{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = FeaturesUtil::allow_enabling_features_with_incompatible_plugins(): void;
FeaturesUtil::allow_enabling_features_with_incompatible_plugins() FeaturesUtil::allow enabling features with incompatible plugins code WC 10.8.1
public static function allow_enabling_features_with_incompatible_plugins(): void {
wc_get_container()->get( FeaturesController::class )->allow_enabling_features_with_incompatible_plugins();
}