wp-user-groups icon indicating copy to clipboard operation
wp-user-groups copied to clipboard

The Groups tab should be hidden if there are no groups registered

Open johnbillion opened this issue 4 years ago • 1 comments

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.

johnbillion avatar May 03 '21 09:05 johnbillion

Fixed this locally by using the wp_user_groups_add_profile_section filter and unsetting the groups section.

johnbillion avatar May 03 '21 19:05 johnbillion