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.

Method of the class: WP_Background_Process{}

No Hooks.

Return

Mixed.

Usage

// protected - for code of main (parent) or child class
$result = $this->task( $item );
$item(mixed) (required)
Queue item to iterate over.

WP_Background_Process::task() code WC 8.7.0

abstract protected function task( $item );