Automattic\WooCommerce\Internal\Features

FeaturesController::allow_enabling_features_with_incompatible_plugins()publicWC 1.0

Sets a flag indicating that it's allowed to enable features for which incompatible plugins are active from the WooCommerce feature settings page.

Метод класса: FeaturesController{}

No Hooks.

Return

null. Nothing.

Usage

$FeaturesController = new FeaturesController();
$FeaturesController->allow_enabling_features_with_incompatible_plugins(): void;

Code of FeaturesController::allow_enabling_features_with_incompatible_plugins() WC 7.1.0

public function allow_enabling_features_with_incompatible_plugins(): void {
	$this->force_allow_enabling_features = true;
}