Is there a way to restrict limit the visibility of a group thats been created so that a role can’t see it in their own personal settings?
The reason for this is that our team want to have a group setup for them that only they can see if they are all editor etc.
So do you already have a PHP hook or action / filter for this in you repository of snippets so I can create a group (like a DL) for only the team use and visibility if they have been set as a specific role?
Yes, but not restricting all groups only one or selected groups, otherwise it is as you have said so that I can create a group that will be listed in the person settings for Admin or Editors or contributors or what ever roles I choose only. So if I wanted to exclude subscribers or any other role I could for one or more specific groups.
This then means when a new admin ,editor or contributor comes on board only they will see the extra groups listed in their settings amongst all the other pre created groups listed but not the standard members (users / subscribers role).
Hope that clarify’s the situation.
For clarification I have added two attachments for what I mean below, one as an Admin or designated roles and one as subscriber who will not see the group called management in their settings options.
Just thought this would need to take effect in the users WP profile as I have just remembered that you give the option in the users WP profile to allow the them to add themselves to each group listed in that area too.