action_scheduler_run_queue
Handle async requests
Run a queue, and maybe dispatch another async request to run another queue if there are still pending actions after completing a queue in this request.
Использование
add_action( 'action_scheduler_run_queue', 'wp_kama_action_scheduler_run_queue_action' );
/**
* Function for `action_scheduler_run_queue` action-hook.
*
* @param $string
*
* @return void
*/
function wp_kama_action_scheduler_run_queue_action( $string ){
// action...
}
- $string
- -
Где вызывается хук
action_scheduler_run_queue
woocommerce/packages/action-scheduler/classes/ActionScheduler_AsyncRequest_QueueRunner.php 48
do_action( 'action_scheduler_run_queue', 'Async Request' ); // run a queue in the same way as WP Cron, but declare the Async Request context.