Remove Different Admin Menu Links For A Specific User Profile

This PHP code enables you to replace the user@email.com address with the registered email address of a specific user and remove the menu links they don’t need access to for the moment.

The very last line of code in the Gist includes the action to remove access to all the Genesis theme framework settings if you’re using this great design framework.

Please copy ALL the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++

And here’s the before and after results.

remove wp admin menu items

Remove Plugins Admin Menu

Here’s an example of how to remove the menu link for Jetpack for specific users.

Prefer a Plugin?

There’s many good plugins which enable you to do the same thing like Advanced Access Manager.

Sources:

http://codex.wordpress.org/Function_Reference/wp_get_current_user
https://codex.wordpress.org/Plugin_API/Action_Reference/admin_menu
http://codex.wordpress.org/Function_Reference/remove_menu_page

Related Content


Comments

One response to “Remove Different Admin Menu Links For A Specific User Profile”

  1. […] Remove Different Admin Menu Links For A Specific User Profile […]

Leave a Reply

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.