How to Hide the "Social media management" Admin Menu

function plt_hide_social_links_icons_menus() {
	//Hide the "Settings → Social media management" menu.
	remove_submenu_page('options-general.php', 'social-networks');
}

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

Where do I put this code?