action_scheduler_before_process_queue хук-событиеWC 1.0

Process actions in the queue.

Использование

add_action( 'action_scheduler_before_process_queue', 'wp_kama_action_scheduler_before_process_queue_action' );

/**
 * Function for `action_scheduler_before_process_queue` action-hook.
 * 
 * @return void
 */
function wp_kama_action_scheduler_before_process_queue_action(){

	// action...
}

Где вызывается хук

ActionScheduler_WPCLI_QueueRunner::run()
action_scheduler_before_process_queue
ActionScheduler_QueueRunner::run()
action_scheduler_before_process_queue
woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php 126
do_action( 'action_scheduler_before_process_queue' );

Где используется хук в WooCommerce

woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php 219
add_action( 'action_scheduler_before_process_queue', array( $this, 'disable_comment_counting' ), 10, 0 );