Automattic\WooCommerce\Caches

ProductCountCacheService::unschedule_background_actionspublicWC 1.0

Unschedules background actions.

Method of the class: ProductCountCacheService{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ProductCountCacheService = new ProductCountCacheService();
$ProductCountCacheService->unschedule_background_actions(): void;

ProductCountCacheService::unschedule_background_actions() code WC 11.0.0

public function unschedule_background_actions(): void {
	WC()->queue()->cancel_all( self::BACKGROUND_EVENT_HOOK );
}