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.


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...

Where the hook is called

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.