function plt_hide_index_wp_mysql_for_speed_menus() { //Hide the "Tools → Index MySQL" menu. remove_submenu_page('tools.php', 'imfs_settings'); } add_action('admin_menu', 'plt_hide_index_wp_mysql_for_speed_menus', 10000);
Where do I put this code?