gpb_validation_message

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Change the Validation Message
  5. Since

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' );
Apply to all fields on a specific form.
add_filter( 'gpb_validation_message_FORMID', 'my_custom_function' );
Apply to a specific field on a specific form.
add_filter( 'gpb_validation_message_FORMID_FIELDID', 'my_custom_function' );

Parameters

The default validation message.

Examples

Change the Validation Message

<?php
/**
 * Gravity Perks // Blocklist // Change the Validation Message
 * https://gravitywiz.com/documentation/gravity-forms-blocklist/
 */
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.