How to Hide the "Install Plugins" Admin Menu

function plt_hide_premise_split_view_menus() {
	//Hide the "Plugins → Install Plugins" menu.
	remove_submenu_page('plugins.php', 'tgmpa-install-plugins');
}

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

Where do I put this code?