action_scheduler_failed_validation action-hookWC 1.0

Runs when action validation fails.

Usage

add_action( 'action_scheduler_failed_validation', 'wp_kama_action_scheduler_failed_validation_action', 10, 3 );

/**
 * Function for `action_scheduler_failed_validation` action-hook.
 * 
 * @param int       $action_id Action ID.
 * @param Exception $e         Exception instance.
 * @param string    $context   Execution context.
 *
 * @return void
 */
function wp_kama_action_scheduler_failed_validation_action( $action_id, $e, $context ){

	// action...
}
$action_id(int)
Action ID.
$e(Exception)
Exception instance.
$context(string)
Execution context.

Where the hook is called

ActionScheduler_Abstract_QueueRunner::handle_action_error()
action_scheduler_failed_validation
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php 137
do_action( 'action_scheduler_failed_validation', $action_id, $e, $context );

Where the hook is used in WooCommerce

Usage not found.