WordPress at Your Fingertips
function is not described

WP_Background_Process::task() protected WC 1.0


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.

{} It's a method of the class: WP_Background_Process{}

No Hooks.




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

Code of WP_Background_Process::task() WC 5.8.0

abstract protected function task( $item );