Hi @rudik123,
Hope you’re doing great today! ??
Membership doesn’t currently have an “out of the box” solution for hiding profiles in that way. Potentially, you could use URL Groups to restrict access to certain member pages, but that’s not really optimal with BuddyPress.
It would be best to use code to restrict content like that.
Membership provides the following functions you can use for that:
current_user_on_subscription()
current_user_has_subscription()
current_user_is_member()
On the other hand, you could restrict access to all member pages with something like the following for a URL Group:
yoursite.com/buddypress/members/.*
You’ll want to use the “Regular expression” option with that, in order to restrict access to everything with that /members/ slug.
Hope that helps!
Cheers,
David