I’m trying to reschedule a failed action using the hook: action_scheduler_failed_execution.
add_action( 'action_scheduler_failed_execution', 'reschedule_failed_action', 10, 3 );
function reschedule_failed_action( $action_id, $e, $context ){
// test
update_option('action_failed_' . $action_id, $action_id );
}
But , when I test my code , the call back function is never called even when i have a failed action.