How to Hide the "Exif Caption Settings" Admin Menu

function plt_hide_exif_caption_menus() {
	//Hide the "Media → Exif Caption Settings" menu.
	remove_submenu_page('upload.php', 'exifcaption-settings');
}

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

Where do I put this code?