Custom error message in profile edit page.
Hi, I need to do word censorship on the profile fields. I’m using the hook xprofile_updated_profile to achieve that. The problem is that I can’t find a way to generate an error message when the user uses a forbidden word. I’ve tried to do it with the function bp_core_add_message() without any success.
Replacing the forbidden value with an empty array is not a problem, Generating the error message is what I have trouble with.
How can I achieve that? Can anybody help me?
You must be logged in to reply to this topic.