× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

How to remove precise admin menus in Worpress according to rights management ?

Oct 03, 2014
<pre><code class="language-php">add_action( 'admin_menu', 'remove_editor_edit_users' ); function remove_editor_edit_users(){ if((!current_user_can('manage_options'))) { remove_menu_page( 'profile.php' ); remove_submenu_page( 'users.php', 'profile.php' ); } }</code></pre><p> </p>

Get New Tutorials Delivered to Your Inbox

New tutorials will be sent to your Inbox once a week.

comments powered by Disqus