WP_Background_Process::task PHP Method

task() abstract protected method

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.
abstract protected task ( mixed $item ) : mixed
$item mixed Queue item to iterate over.
return mixed
        protected abstract function task($item);