WP_Background_Process::task
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.
Returns
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() WP Background Process::task code WC 10.5.0
abstract protected function task( $item );