Aleš Sýkora wrote

Translate Phone number error message in Fluent Forms

15. 4. 2021 in

If you want to translate the error message, when user fill in wrong phone number in fluent forms, you can use this custom snippet:

function changeErrTxt($element){
    $element['settings']['validation_rules']['valid_phone_number'] = [
        'value'   => false,
        'message' => __('Phone number is not valid', 'fluentformpro')
    return $element;

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from category
Aleš Sýkora wrote
Remove Archive Title prefix in WordPress
28. 5. 2021 in
Put this code in code snippets plugin.
Read More
Aleš Sýkora wrote
Astra Theme Container Width Fix
4. 9. 2019 in
If you encounter some issues with container width on mobile device when using Astra Theme and Toolset and Bootstrap try this CSS fixes.
Read More
Aleš Sýkora wrote
Woocommerce AJAX add to cart button in Oxygen repeater
5. 5. 2020 in ,
If you want to style custom repeater for woocommerec product categories in Oxygen builder and use the AJAX buttons in it feel free to use them with shortcode [add_to_cart id=""] or just copy the button html with class="add_to_cart_button ajax_add_to_cart"
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram