WP_Background_Process::task()protectedWC 1.0

Task

Override this method to perform any actions required on each queue item. Return the modified item for further processing in the next pass through. Or, return false to remove the item from the queue.

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

Хуков нет.

Возвращает

Разное.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->task( $item );
$item(разное) (обязательный)
Queue item to iterate over.

Код WP_Background_Process::task() WC 8.7.0

abstract protected function task( $item );