Inspiration For Creative Minds
Home » Labs » Remove unwanted menu/submenu links from wordpress dashboard  

Filed under Labs

Add below code to your functions.php and it will hide unwanted menu/sub-menu from WP dashboard. It is useful when you white labeling WordPress.

Remove menu page links

	// Add in functions.php
	function remove_menus()
		global $submenu;
		remove_menu_page( 'link-manager.php' ); // Links
		remove_menu_page( 'edit-comments.php' ); // Comments
		remove_menu_page( 'themes.php' ); // Appearance
		remove_menu_page( 'plugins.php' ); // Plugins
		remove_menu_page( 'users.php' ); // Users
		remove_menu_page( 'tools.php' ); // Tools
		remove_menu_page('options-general.php'); // Settings
	add_action('admin_menu', 'remove_menus');
It's only fair to share...Share on Google+Tweet about this on TwitterShare on Facebook

Posts you may like: