Astra_Theme_WP_Background_Process::task( object $process )
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
- $process
-
(object) (Required) Queue item object.
Return
(mixed)
Source
File: inc/theme-update/class-astra-theme-wp-background-process.php
protected function task( $process ) { do_action( 'astra_batch_process_task_' . $process, $process ); if ( function_exists( $process ) ) { call_user_func( $process ); } if ( 'update_db_version' === $process ) { Astra_Theme_Background_Updater::update_db_version(); } return false; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
2.1.3 | Introduced. |