Description
Filter the message returned when a field fails the blacklist validation.
Usage
Apply to all fields on all forms.
add_filter( 'gpb_validation_message', 'my_custom_function' );
add_filter( 'gpb_validation_message_FORMID', 'my_custom_function' );
add_filter( 'gpb_validation_message_FORMID_FIELDID', 'my_custom_function' );
Parameters
- message string
The default validation message.
Examples
Change the validation message
add_filter( 'gpb_validation_message', function( $validation_message ) {
// Specify the message you would like to use.
return 'YOUR MESSAGE';
});
Since
This filter is available since Gravity Forms Blacklist 1.2.5.