Automattic\WooCommerce\Caches

OrderCountCacheService::unschedule_background_actionspublicWC 10.0.0

Unschedules background actions.

Method of the class: OrderCountCacheService{}

No Hooks.

Returns

null. Nothing (null).

Usage

$OrderCountCacheService = new OrderCountCacheService();
$OrderCountCacheService->unschedule_background_actions();

Changelog

Since 10.0.0 Introduced.

OrderCountCacheService::unschedule_background_actions() code WC 10.7.0

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