Replies
Viewing 1 post (of 1 total)
Hi Keymaster. thanks for your reply.
It seems to me this filter is used to alter users’ input but not validate it.I have been trying to find in the code an example where buddyboss/buddypress validates user’s input(So I can maybe mimic it), but there seems to be none.
To clarify, I want to show an error message when users input something invalid(in this case not matching the regexp). I think I must be able to do it with javascript, but if buddypress has something built-in, then I think it will be better to utilize it.
I am still checking the hooks. For now
bp_xprofile_field_type_is_valid
looks promising. Any thoughts?
Viewing 1 post (of 1 total)