How to override default email error text message?

  • Participant
    Level: Initiated
    Posts: 2
    savant on #43156

    I try to override the standard email validation message: ‘Please enter a valid email address.’ with a message like: Email is een verplicht veld.

    SO I try it like this:

    add_action('bp_core_validate_email_address', function (WP_Error $errors, $validation_results) {
        $bp = buddypress();   
        if (isset(( $validation_results['signup_email']))) {
            $errors->add['signup_email'] = sprintf(
                '<div class="bp-messages bp-feedback error">
                'Email is een verplicht veld.'
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2541
    Ravi on #43169

    Hello Savant,

    Thank you for posting. It seems you need to show this message in your language. You can do this via translating this string using any translator plugin like loco translate. It will help you to fix this.

    Please give it a try.


    • This reply was modified 11 months, 2 weeks ago by Ravi.

You must be logged in to reply to this topic.

This topic is: not resolved