action_scheduler_failed_fetch_action action-hookWC 1.0

Usage

add_action( 'action_scheduler_failed_fetch_action', 'wp_kama_action_scheduler_failed_fetch_action', 10, 2 );

/**
 * Function for `action_scheduler_failed_fetch_action` action-hook.
 * 
 * @param  $action_id 
 * @param  $exception 
 *
 * @return void
 */
function wp_kama_action_scheduler_failed_fetch_action( $action_id, $exception ){

	// action...
}
$action_id
-
$exception
-

Where the hook is called

ActionScheduler_DBStore::fetch_action()
action_scheduler_failed_fetch_action
ActionScheduler_wpPostStore::fetch_action()
action_scheduler_failed_fetch_action
woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php 342
do_action( 'action_scheduler_failed_fetch_action', $action_id, $exception );
woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php 200
do_action( 'action_scheduler_failed_fetch_action', $post->ID, $exception );

Where the hook is used in WooCommerce

woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Logger.php 58
add_action( 'action_scheduler_failed_fetch_action', array( $this, 'log_failed_fetch_action' ), 10, 2 );