Skip to content

Instantly share code, notes, and snippets.

@jester1979
Created April 30, 2015 12:14
Show Gist options
  • Save jester1979/0117922ac859d0813ad4 to your computer and use it in GitHub Desktop.
Save jester1979/0117922ac859d0813ad4 to your computer and use it in GitHub Desktop.
Filter GForm Validation message
add_filter( 'gform_validation_message', 'dd_gform_validation_message' , 10, 2 );
function dd_gform_validation_message( $message, $form ) {
return "<div class='validation_error'>" . __( 'There was a problem with your submission.', CHILD_THEME_TEXTDOMAIN ) . ' ' . __( 'Errors have been highlighted below.', CHILD_THEME_TEXTDOMAIN ) . '</div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment