Jump to content


Welcome to the forum:

Welcome to the iThemes, PluginBuddy and WebDesign.com forum. We've created several tutorial video's to help you get you started with using the forum, please check them out!

Also take note of the forum guidelines.


Support hours:

Our moderators actively respond to forum support requests during normal business hours which are Monday-Friday, 8am - 5pm Central Standard Time, typically within one business day. Although some moderators choose to work during the weekends, we can not guarantee immediate attention to your requests. Thanks for understanding.

What is included with support:

Premium support includes theme/plugin issues such as: bugs encountered under normal operation, how to use basic features, basic WordPress help, and basic help with customization (meaning we point you to resources and will help in more depth as time allows). More information.

information

Hide Exchange Admin Settings Sub Menu



2 replies to this topic

#1 douglamunyon

douglamunyon

    Advanced Member

  • Members
  • Others: Toolkit
  • PipPipPip
  • 207 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
  • 45 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 douglamunyon

douglamunyon

    Advanced Member

  • Members
  • Others: Toolkit
  • PipPipPip
  • 207 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