acf/validate_value

acf/validate_value

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.3.1

do_action('acf/validate_value') is found 1 times:

  • /includes/validation.php line 338
    	*/
    	$valid = apply_filters( "acf/validate_value/type={$field['type']}", $valid, $value, $field, $input );
    	$valid = apply_filters( "acf/validate_value/name={$field['_name']}", $valid, $value, $field, $input );
    	$valid = apply_filters( "acf/validate_value/key={$field['key']}", $valid, $value, $field, $input );
    	$valid = apply_filters( 'acf/validate_value', $valid, $value, $field, $input );
    
    	// allow $valid to be a custom error message
    	if ( ! empty( $valid ) && is_string( $valid ) ) {
    		$message = $valid;
    		$valid   = false;
    	}
    

See this hook used in plugins: