Created
February 15, 2021 11:22
-
-
Save kamlesh08/b6f54d223eec1e41ccb4c7b08cce4059 to your computer and use it in GitHub Desktop.
Change Validation Message in Contact Form Module
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
add_filter( 'pp_contact_form_strings_i18n', function( $msgs ) { | |
// Previous msg - Please enter your name. | |
// New msg | |
$msgs['empty_name'] = 'Your custom validation message.'; | |
return $msgs; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment