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

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

add_action( 'action_scheduler_after_execute', 'wp_kama_action_scheduler_after_execute_action', 10, 3 );

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

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

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

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

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

woocommerce/packages/action-scheduler/classes/ActionScheduler_FatalErrorMonitor.php 21
add_action( 'action_scheduler_after_execute', array( $this, 'untrack_action' ), 0, 0 );
woocommerce/packages/action-scheduler/classes/ActionScheduler_FatalErrorMonitor.php 31
remove_action( 'action_scheduler_after_execute', array( $this, 'untrack_action' ), 0 );
woocommerce/packages/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_QueueRunner.php 80
add_action( 'action_scheduler_after_execute', array( $this, 'after_execute' ), 10, 2 );
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Logger.php 52
add_action( 'action_scheduler_after_execute', array( $this, 'log_completed_action' ), 10, 3 );