Automattic\WooCommerce\Caches
ProductCountCacheService::unschedule_background_actions
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() ProductCountCacheService::unschedule background actions code WC 11.0.0
public function unschedule_background_actions(): void {
WC()->queue()->cancel_all( self::BACKGROUND_EVENT_HOOK );
}