Remove unwanted menu/submenu links from wordpress dashboard

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

	<?php
 
	// 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');
 
 
	?>

Related posts:

HTML5 page structure

HTML5 offers more powerful structure comparing to older versions of Html. There are many new …


Partner with Us

We are providing an exclusive partnership offer to individuals and companies who are interested in setting up their own web design & development company. For more information about how to partner with us, please contact us