Jump to content


information

Hide Exchange Admin Settings Sub Menu



2 replies to this topic

#1 Doug LaMunyon

Doug LaMunyon

    Advanced Member

  • Members
  • Others: Toolkit
  • PipPipPip
  • 202 posts
  • LocationCortez, Colorado

Posted 22 May 2014 - 11:35 AM

I'm customizing a role for our client and simplifying the admin area by hiding certain admin menus. I'm trying to hide the Exchange Settings sub menu and not having success. I'm trying this by using a combination of...
http://wordpress.org/support/topic/remove-admin-submenu-items
http://justintadlock.com/archives/2011/06/13/removing-menu-pages-from-the-wordpress-admin
http://www.wpmayor.com/how-to-remove-menu-items-in-admin-depending-on-user-role/

Here is the code I am trying:
// CUSTOMIZE ADMIN MENU BY USER ROLE
add_action( 'admin_menu', 'my_remove_menu_pages', 999 );
function my_remove_menu_pages() {
	global $user_ID;
	if ( current_user_can( 'manager' ) ) {
remove_menu_page( 'tools.php' );
remove_menu_page( 'slidedeck2.php' );
remove_menu_page( 'plugins.php' );
remove_submenu_page( 'admin.php', 'it-exchange-settings' );
	}
}

This isn't hiding that part of the menu. Thanks in advance for the help.

-d

#2 lewayotte

lewayotte

    iThemes Plugin Developer

  • Moderators
  • Others: Administrators
  • 33 posts

Posted 23 May 2014 - 05:40 AM

Hey Doug,

You were pretty close... try this instead:

remove_submenu_page( 'it-exchange', 'it-exchange-settings' );

Lew

#3 Doug LaMunyon

Doug LaMunyon

    Advanced Member

  • Members
  • Others: Toolkit
  • PipPipPip
  • 202 posts
  • LocationCortez, Colorado

Posted 23 May 2014 - 09:58 AM

Perfect! Thanks.
-d



Reply to this Topic


ATTENTION
If this topic is marked RESOLVED or INFORMATION, or if you are NOT experiencing EXACTLY the same issue, please start a new topic to provide the details of your problem. If the solution provided doesn't work for you, you should start a new topic. If you feel this thread contains relevant information, you may include a link to it in your new topic. To ensure that we can process your support request efficiently, ALWAYS include a link to your site, and/or the page your request is related to. When posting your question or request on the forum, please be as concise and specific as possible. The shorter and more to the point you can make your request, the better.

For BackupBuddy related issues, be sure to include the status log from your most recent backup.

CLICK HERE to start a new topic in the Exchange ecommerce plugin forum.


  



Also tagged with one or more of these keywords: information

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users