Docs

WP_Background_Process::task( mixed $item ): mixed

Task

Description

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.

Parameters

$itemmixedrequired
Queue item to iterate over.

Return

mixed