Hi. I'd like to change the text of the form-wide error message that shows when the form fails validation.
I found a bit of code here:
http://www.gravityhelp.com/forums/topic/new-hooks-and-fliters#post-3254
add_filter("form_validation_message",
"change_message", 10, 2) ;
function change_message($message, $form)
{
return "Failed." . $form["MyForm"] ;
}
This code snippet doesn't seem to change the message. This post is over a year old, so I'd like to know if it should still work. If so, what could I be doing wrong?