wp-user-groups
wp-user-groups copied to clipboard
The Groups tab should be hidden if there are no groups registered
We're using WP User Profiles along with WP User Groups on Multisite.
If there are no groups registered for a site then the Groups tab still shows up but it's empty. Ideally it should only be registered if there are groups to show in it.
Fixed this locally by using the wp_user_groups_add_profile_section filter and unsetting the groups section.