Automattic\WooCommerce\Internal\BatchProcessing
BatchProcessingController::handle_watchdog_action()
Schedule a processing action for all the processors that are enqueued but not scheduled (because they have just been enqueued, or because the processing for a batch failed).
Метод класса: BatchProcessingController{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->handle_watchdog_action(): void;
Код BatchProcessingController::handle_watchdog_action() BatchProcessingController::handle watchdog action WC 9.2.3
private function handle_watchdog_action(): void { $pending_processes = $this->get_enqueued_processors(); if ( empty( $pending_processes ) ) { return; } foreach ( $pending_processes as $process_name ) { if ( ! $this->is_scheduled( $process_name ) ) { $this->schedule_batch_processing( $process_name ); } } $this->schedule_watchdog_action( true ); }