gpev_disable_email_validator_by_default
Description
Disable Email Validator by default for Email fields.
By default, the “Enable Email Validator” setting is enabled. This filter allows you to disable GP Email Validator either globally or for a specific form. Note, this will not impact Email Fields where the “Enable Email Validator” setting has already been changed.
Usage
Disable GP Email Validator by default.
add_filter( 'gpev_disable_email_validator_by_default', '__return_true' );
Disable GP Email Validator by default for a specific form.
add_filter( 'gpev_disable_email_validator_by_default_FORMID', '__return_true' );
Since
This filter is available since GP Email Validator 1.0.1
Examples
Disable Email Validator by default for all Email fields
add_filter( 'gpev_disable_email_validator_by_default', '__return_true' );
Only enable Email Validator by default for a specific form
add_filter( 'gpev_disable_email_validator_by_default', '__return_true' );
add_filter( 'gpev_disable_email_validator_by_default_2', '__return_false' );
Disable Email Validator by default for a specific form
add_filter( 'gpev_disable_email_validator_by_default_2', '__return_true' );