action_scheduler_run_queue action-hookWC 1.0

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.

Usage

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
-

Where the hook is called

ActionScheduler_AsyncRequest_QueueRunner::handle()
action_scheduler_run_queue
woocommerce/packages/action-scheduler/classes/ActionScheduler_AsyncRequest_QueueRunner.php 52
do_action( 'action_scheduler_run_queue', 'Async Request' ); // run a queue in the same way as WP Cron, but declare the Async Request context

Where the hook is used in WooCommerce

Usage not found.