WP_Background_Process::task( mixed $item )
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
- $item
-
(Required) Queue item to iterate over.
Return
(mixed)
Source
File: bp-core/libraries/wp-background-process.php
abstract protected function task( $item );
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.