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