How to Hide the "Night Mode" Admin Menu

function plt_hide_night_mode_menus() {
	//Hide the "Settings → Night Mode" menu.
	remove_submenu_page('options-general.php', 'admin-custom-color');
}

add_action('admin_menu', 'plt_hide_night_mode_menus', 11);

Where do I put this code?