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

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

add_action( 'action_scheduler_begin_execute', 'wp_kama_action_scheduler_begin_execute_action', 10, 2 );

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

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

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

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

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

woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Logger.php 51
add_action( 'action_scheduler_begin_execute', array( $this, 'log_started_action' ), 10, 2 );