Automattic\WooCommerce\Internal\BatchProcessing

BatchProcessingController::schedule_watchdog_action()privateWC 1.0

Schedule the watchdog action.

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

Хуков нет.

Возвращает

null. Ничего.

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

// private - только в коде основоного (родительского) класса
$result = $this->schedule_watchdog_action( $with_delay, $unique ): void;
$with_delay(true|false)
Whether to delay the action execution. Should be true when rescheduling, false when enqueueing.
По умолчанию: false
$unique(true|false)
Whether to make the action unique.
По умолчанию: false

Код BatchProcessingController::schedule_watchdog_action() WC 7.7.0

private function schedule_watchdog_action( bool $with_delay = false, bool $unique = false ): void {
	$time = $with_delay ? time() + HOUR_IN_SECONDS : time();
	as_schedule_single_action(
		$time,
		self::WATCHDOG_ACTION_NAME,
		array(),
		self::ACTION_GROUP,
		$unique
	);
}