Created
September 23, 2022 17:04
-
-
Save uamv/e5c1f234aa6eecd93b73483373787d22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// apply lowercase to email when saved | |
add_filter( 'gform_save_field_value', function( $value, $lead, $field, $form, $input_id ) { | |
if ( $field instanceof GF_Field_Email ) { | |
GFCommon::log_debug( current_filter() . ': transforming email to lowercase' ); | |
return strtolower( $value ); | |
} | |
return $value; | |
}, 10, 5 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment