action_scheduler_before_execute action-hookWC 1.0

Usage

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
-

Where the hook is called

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

Where the hook is used in 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' ) );