WP_Background_Process::handle_cron_healthcheck() public WC 1.0
Handle cron healthcheck
Restart the background process if not already running and data exists in the queue.
{} Это метод класса: WP_Background_Process{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WP_Background_Process = new WP_Background_Process(); $WP_Background_Process->handle_cron_healthcheck();
Код WP_Background_Process::handle_cron_healthcheck() WP Background Process::handle cron healthcheck WC 5.0.0
public function handle_cron_healthcheck() {
if ( $this->is_process_running() ) {
// Background process already running.
exit;
}
if ( $this->is_queue_empty() ) {
// No data to process.
$this->clear_scheduled_event();
exit;
}
$this->handle();
exit;
}