How to Remove the Links Menu Item from the WordPress Menu

Many sites and some blogs do not use the Links Manager tool in WordPress, especially those using WordPress as a Content Management System. If that is the case, you might want to remove the Links menu item from the admin area of the site altogether.

How do I remove the Links menu item from the WordPress admin?

Place the following code in the functions.php file of your active theme:

<?php
	add_action( 'admin_menu', 'mytheme_remove_menu_pages' );
	function mytheme_remove_menu_pages() {
		remove_menu_page('link-manager.php');
	}
?>

The above code will remove the Links menu item from the WordPress admin. For more information on how you can use this action to remove other menu items, see the WordPress Codex on remove_menu_page().

Want to learn more about wordpress? Try this resource...

Digging into WordPress