Automattic\WooCommerce\Internal\Caches

ProductCacheController::on_initpublicWC 10.5.0

Check feature flag and register hooks on WordPress init.

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

Хуков нет.

Возвращает

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

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

$ProductCacheController = new ProductCacheController();
$ProductCacheController->on_init(): void;

Список изменений

С версии 10.5.0 Введена.

Код ProductCacheController::on_init() WC 10.5.2

public function on_init(): void {
	if ( ! FeaturesUtil::feature_is_enabled( self::FEATURE_NAME ) ) {
		return;
	}

	$this->register_hooks();
}