How to update user profile field on the checkbox change?
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?