function plt_hide_keyring_menus() { //Hide the "Tools → Keyring" menu. remove_submenu_page('tools.php', 'keyring'); } add_action('admin_menu', 'plt_hide_keyring_menus', 11);
Where do I put this code?