Wow, clickallco, thanks for the quick help! I really appreciate your help ????
This code removes the “members” tab and access to the /groups/GROUPNAME/members/ page.
But in my theme (buddyboss) when you click on the group it redirects to this page /groups/GROUPNAME/members/all-members/
And that page is still available.
Can I do anything about it? Ideally I need 2 things:
1. Remove access to pages like /groups/GROUPNAME/members/all-members/
2. If user open these 2 pages:
/groups/GROUPNAME/members/
/groups/GROUPNAME/members/all-members/
Then redirect to the activity page:
/groups/GROUPNAME/activity/