How to Hide Theme Editor Admin Menus

function plt_hide_theme_editor_menus() {
	//Hide "Appearance → Theme Code Editor".
	remove_submenu_page('themes.php', 'theme_editor_theme');
	//Hide "Plugins → Plugin Code Editor".
	remove_submenu_page('plugins.php', 'theme_editor_plugin');

	//Hide "Theme Editor".
	remove_menu_page('theme_editor_theme');
	//Hide "Theme Editor → Theme Code Editor".
	remove_submenu_page('theme_editor_theme', 'theme_editor_theme');
	//Hide "Theme Editor → Plugin Code Editor".
	remove_submenu_page('theme_editor_theme', 'theme_editor_plugin');
	//Hide "Theme Editor → Settings".
	remove_submenu_page('theme_editor_theme', 'theme_editor_settings');
	//Hide "Theme Editor → Access Control".
	remove_submenu_page('theme_editor_theme', 'theme_editor_permisions');
	//Hide "Theme Editor → Notify Me".
	remove_submenu_page('theme_editor_theme', 'theme_editor_notify');
	//Hide "Theme Editor → Child Theme".
	remove_submenu_page('theme_editor_theme', 'ms_child_theme_editor');
	//Hide "Theme Editor → Child Theme Permission".
	remove_submenu_page('theme_editor_theme', 'ms_child_theme_editor_control');
}

add_action('admin_menu', 'plt_hide_theme_editor_menus', 1000);

Where do I put this code?