Remove Links menu item in WordPress

Problem: I’m customising a WP install for a client, adding some Custom Post Types and wotnot, and they aren’t going to have any need for the Links thing.

Fix: Adding this to your theme’s (or child-theme’s) functions.php removes the page and the menu link:

function nuke_menu_items(){
remove_menu_page( 'link-manager.php');
//remove_menu_page( 'upload.php'); //remove other items etc etc
}
add_action('admin_menu', 'nuke_menu_items', 999 );

Leave a Reply

Your email address will not be published.