So I have a site where users can sign up either as a member/subscriber or for their own site (admin for their site and subscriber for main site). They must be a member/subscriber in order to shop (e-commerce platform).
How can i hide the admin bar from people who don't have a site/store?
I tried: `
if (!current_user_can('administrator')) :
but this hides it from people that have sites when they are anywhere else on the network other than their own. To clarify, a user can only see admin bar when they are on their sub-site, it becomes invisible if they leave their sub-site.
I have tried numerous of plugins, but they all do the same thing.