evertiro / Beacon-For-Helpscout

WordPress integration plugin for Beacon from Help Scout
GNU General Public License v2.0
2 stars 1 forks source link

visibility admin-only #7

Open codeagencybe opened 7 years ago

codeagencybe commented 7 years ago

Hello,

I'm checking the visibility section but I don't see an option to load it in backend only? I want to let shop owners/users that work in backend be able to check documentation and send in support tickets but nothing on the front-end.

So basically an option that checks if user is in backend and/or an option that can show the beacon only if logged-in role = xxxxx where xxx can be chosen from dropdown so we can pick e.g. administrator, shop owner or only authors etc...

ecotechie commented 6 years ago

You'd need to check if current_user_can( 'administrator' ) and hide the help tab with CSS.