Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
johnbillion opened this issue May 3, 2021 · 1 comment
Open

Comments

@johnbillion
Copy link
Contributor

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant