How to update user profile field on the checkbox change?

Question

I have created a custom profile field in BuddyPress – single checkbox that is by default unchecked. I want to display this checkbox outside user profile settings page e.g. in the theme footer or header file. I also want to dynamically update user data on this checkbox click (via ajax, without page reload) and add a specific class to body if checkbox is checked. Can anyone help me with this?

0
, , , Avigo 4 months 0 Answers 76 views 0

Leave an answer