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

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

add_action( 'action_scheduler_failed_action', 'wp_kama_action_scheduler_failed_action', 10, 2 );

/**
 * Function for `action_scheduler_failed_action` action-hook.
 * 
 * @param  $action_id 
 * @param  $timeout   
 *
 * @return void
 */
function wp_kama_action_scheduler_failed_action( $action_id, $timeout ){

	// action...
}
$action_id
-
$timeout
-

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

ActionScheduler_QueueCleaner::mark_failures()
action_scheduler_failed_action
woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueCleaner.php 128
do_action( 'action_scheduler_failed_action', $action_id, $timeout );

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

woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Logger.php 54
add_action( 'action_scheduler_failed_action', array( $this, 'log_timed_out_action' ), 10, 2 );