Created
April 30, 2015 12:14
-
-
Save jester1979/0117922ac859d0813ad4 to your computer and use it in GitHub Desktop.
Filter GForm Validation message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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