Hiding BuddyPress Profile Field Groups Conditionally
Assume that you are running a BuddyPress site and you have multiple profile field groups. Now, if you don't want some of the field groups to be visible to certain users, you can do that by filtering on 'bp_after_has_profile_parse_args' and passing the field groups as the 'exclude_groups' parameter. Here is an example where only the …