Aleš Sýkora / April 15, 2021 / 0 comments
Translate Phone number error message in Fluent Forms
1 min read / WordPress / Share on: Twitter, LinkedIn, Facebook
Post summary: If you want to translate the error message, when user fill in wrong phone number in fluent forms, you can use this custom snippet:
If you want to translate the error message, when user fill in wrong phone number in fluent forms, you can use this custom snippet:
add_filter('fluentform_editor_init_element_phone','changeErrTxt',10,1);
function changeErrTxt($element){
$element['settings']['validation_rules']['valid_phone_number'] = [
'value' => false,
'message' => __('Phone number is not valid', 'fluentformpro')
];
return $element;
}
Fuel my passion for writing with a beer🍺
Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻