Tagged: hooks php buddyboss
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"> %s </div>', 'Email is een verplicht veld.' ); } });
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.
Regards
Ravi- This reply was modified 2 years, 10 months ago by Ravi.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
This topic is: not resolved