How to Hide PG Slideshow-Gallery Admin Menus

function plt_hide_pg_slideshow_gallery_menus() {
	//Hide the "PG Gallery-Slideshow" menu.
	remove_menu_page('edit.php?post_type=portgal');
	//Hide the "PG Gallery-Slideshow → General Settings" menu.
	remove_submenu_page('edit.php?post_type=portgal', 'general_settings');
}

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

Where do I put this code?