How to Hide Dimme Googlemap Admin Menus

function plt_hide_dimme_googlemaps_menus() {
	//Hide "Settings → Dimme Googlemap".
	remove_submenu_page('options-general.php', 'dimme_googlemaps_admin_init');

	//Hide "googlemap".
	remove_menu_page('edit.php?post_type=googlemap');
	//Hide "googlemap → googlemap".
	remove_submenu_page('edit.php?post_type=googlemap', 'edit.php?post_type=googlemap');
	//Hide "googlemap → Add googlemap".
	remove_submenu_page('edit.php?post_type=googlemap', 'post-new.php?post_type=googlemap');
	//Hide "googlemap → Categories".
	remove_submenu_page('edit.php?post_type=googlemap', 'edit-tags.php?taxonomy=category&post_type=googlemap');
}

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

Where do I put this code?