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

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

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
-

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

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 192
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 );

Где используется хук в 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 );