function plt_hide_add_custom_fields_to_media_menus() {
//Hide the "Settings → Media Custom Fields" menu.
remove_submenu_page('options-general.php', 'add-custom-fields-to-media');
}
add_action('admin_menu', 'plt_hide_add_custom_fields_to_media_menus', 11);