Customize CF7 Form Validation Messages
Customizes the default validation messages in Contact Form 7
PHP
function custom_wpcf7_messages($messages) {
$messages['required'] = 'This field is required.';
$messages['invalid_email'] = 'Please enter a valid email address.';
return $messages;
}
add_filter('wpcf7_messages', 'custom_wpcf7_messages');
Snippet Feedback
Did this snippet work for you? Do you have any questions about this snippet? Leave some feedback below.
SHARED BY