action_scheduler_failed_fetch_action
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 $ID
* @param $exception
*
* @return void
*/
function wp_kama_action_scheduler_failed_fetch_action( $ID, $exception ){
// action...
}
- $ID
- -
- $exception
- -
Where the hook is called
action_scheduler_failed_fetch_action
action_scheduler_failed_fetch_action
woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php 200
do_action( 'action_scheduler_failed_fetch_action', $post->ID, $exception );
woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php 370
do_action( 'action_scheduler_failed_fetch_action', $action_id, $exception );
Where the hook is used in WooCommerce
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Logger.php 75
add_action( 'action_scheduler_failed_fetch_action', array( $this, 'log_failed_fetch_action' ), 10, 2 );