Automattic\WooCommerce\Utilities

FeaturesUtil::allow_enabling_features_with_incompatible_plugins()public staticWC 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.

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

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = FeaturesUtil::allow_enabling_features_with_incompatible_plugins(): void;

Код FeaturesUtil::allow_enabling_features_with_incompatible_plugins() WC 9.0.2

public static function allow_enabling_features_with_incompatible_plugins(): void {
	wc_get_container()->get( FeaturesController::class )->allow_enabling_features_with_incompatible_plugins();
}