How to Hide Map My Locations Admin Menus

function plt_hide_map_my_locations_menus() {
	//Hide "Locations".
	remove_menu_page('edit.php?post_type=mml_location');
	//Hide "Locations → Locations".
	remove_submenu_page('edit.php?post_type=mml_location', 'edit.php?post_type=mml_location');
	//Hide "Locations → Add Post".
	remove_submenu_page('edit.php?post_type=mml_location', 'post-new.php?post_type=mml_location');

	//Hide "Map My Locations".
	remove_menu_page('map-my-locations');
	//Hide "Map My Locations → Settings".
	remove_submenu_page('map-my-locations', 'map-my-locations');
	//Hide "Map My Locations → Maps".
	remove_submenu_page('map-my-locations', 'map-my-locations-maps');
}

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

Where do I put this code?