gform_rfc_url_validation

Description

Enables and disables RFC URL validation. Defaults to true. When RFC is enabled, URLs will be validated against the RFC standard. When disabled, a simple and generic URL validation will be performed.

Usage

add_filter( 'gform_rfc_url_validation', '__return_false', 10, 1 );

Parameters

Defaults to true. Set to false using __return_false or a custom function to set to false, to disable RFC.

Examples

add_filter( 'gform_rfc_url_validation', '__return_false', 10, 1 );

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

This filter is located in common.php.