Skip to content

Instantly share code, notes, and snippets.

@kamlesh08
Created February 15, 2021 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamlesh08/b6f54d223eec1e41ccb4c7b08cce4059 to your computer and use it in GitHub Desktop.
Save kamlesh08/b6f54d223eec1e41ccb4c7b08cce4059 to your computer and use it in GitHub Desktop.
Change Validation Message in Contact Form Module
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