• 0

Remove Features admin tab for certain user roles


Question

Posted · Report post

Is there any nifty way to remove the "Features" admin menu tab for some user roles, editor and author. I thought it might be possible by hooking into the admin loading and unregistering the menu option. But I don't know exactly how.

Share this post


Link to post
Share on other sites

5 answers to this question

  • 0

Posted · Report post

I don't need to modify the dashboard, I want to hide the admin button (on the left hand side of the screen) for the "Features" from all except admin. At this time we are using a hackish workaround from the functions.php, we are hooking into "admin_init" and loading a js that hides the button if user is not admin.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thank you, that is exactly what we needed.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Excellent!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now