WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Background_Process::handle() protected WC 1.0

Handle

Pass each queue item to the task handler, while remaining within server memory and time limit constraints.

Это метод класса: WP_Background_Process{}

Хуков нет.

Возвращает

Null. Ничего.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->handle();

Код WP_Background_Process::handle() WC 4.5.2

woocommerce/includes/libraries/wp-background-process.php
<?php
protected function handle() {
	$this->lock_process();

	do {
		$batch = $this->get_batch();

		foreach ( $batch->data as $key => $value ) {
			$task = $this->task( $value );

			if ( false !== $task ) {
				$batch->data[ $key ] = $task;
			} else {
				unset( $batch->data[ $key ] );
			}

			if ( $this->time_exceeded() || $this->memory_exceeded() ) {
				// Batch limits reached.
				break;
			}
		}

		// Update or delete current batch.
		if ( ! empty( $batch->data ) ) {
			$this->update( $batch->key, $batch->data );
		} else {
			$this->delete( $batch->key );
		}
	} while ( ! $this->time_exceeded() && ! $this->memory_exceeded() && ! $this->is_queue_empty() );

	$this->unlock_process();

	// Start next batch or complete process.
	if ( ! $this->is_queue_empty() ) {
		$this->dispatch();
	} else {
		$this->complete();
	}

	wp_die();
}