How to Hide NutsForPress Images and Media Admin Menus

function plt_hide_nutsforpress_menus() {
	//Hide the "NutsForPress" menu.
	remove_menu_page('nfproot-settings');
	//Hide the "NutsForPress → NutsForPress" menu.
	remove_submenu_page('nfproot-settings', 'nfproot-settings');
	//Hide the "NutsForPress → Images and Media" menu.
	remove_submenu_page('nfproot-settings', 'nfpmgm-settings');
}

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

Where do I put this code?