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

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

add_action( 'action_scheduler_before_execute', 'wp_kama_action_scheduler_before_execute_action', 10, 2 );

/**
 * Function for `action_scheduler_before_execute` action-hook.
 * 
 * @param  $action_id 
 * @param  $context   
 *
 * @return void
 */
function wp_kama_action_scheduler_before_execute_action( $action_id, $context ){

	// action...
}
$action_id
-
$context
-

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

ActionScheduler_Abstract_QueueRunner::process_action()
action_scheduler_before_execute
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php 53
do_action( 'action_scheduler_before_execute', $action_id, $context );

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

woocommerce/packages/action-scheduler/classes/ActionScheduler_FatalErrorMonitor.php 20
add_action( 'action_scheduler_before_execute', array( $this, 'track_current_action' ), 0, 1 );
woocommerce/packages/action-scheduler/classes/ActionScheduler_FatalErrorMonitor.php 30
remove_action( 'action_scheduler_before_execute', array( $this, 'track_current_action' ), 0 );
woocommerce/packages/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_QueueRunner.php 79
add_action( 'action_scheduler_before_execute', array( $this, 'before_execute' ) );