Tips on Customizing WP Maps – Display Google Maps Perfectly with Ease

How to Hide WP Maps Admin Menus

function plt_hide_wp_google_map_plugin_menus() {
	//Hide "WP MAPS".
	remove_menu_page('wpgmp_view_overview');
	//Hide "WP MAPS → WP MAPS".
	remove_submenu_page('wpgmp_view_overview', 'wpgmp_view_overview');
	//Hide "WP MAPS → How to Use".
	remove_submenu_page('wpgmp_view_overview', 'wpgmp_how_overview');
	//Hide "WP MAPS → Add Marker Category".
	remove_submenu_page('wpgmp_view_overview', 'wpgmp_form_group_map');
	//Hide "WP MAPS → Manage Categories".
	remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_group_map');
	//Hide "WP MAPS → Add Location".
	remove_submenu_page('wpgmp_view_overview', 'wpgmp_form_location');
	//Hide "WP MAPS → Manage Locations".
	remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_location');
	//Hide "WP MAPS → Add Map".
	remove_submenu_page('wpgmp_view_overview', 'wpgmp_form_map');
	//Hide "WP MAPS → Manage Maps".
	remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_map');
	//Hide "WP MAPS → Plugin Settings".
	remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_settings');
	//Hide "WP MAPS → Add Route".
	remove_submenu_page('wpgmp_view_overview', 'wpgmp_form_route');
	//Hide "WP MAPS → Manage Routes".
	remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_route');
	//Hide "WP MAPS → Map Drawing".
	remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_drawing');
	//Hide "WP MAPS → Manage Permissions".
	remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_permissions');
	//Hide "WP MAPS → Plugin Tools".
	remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_tools');
	//Hide "WP MAPS → Plugin Add-Ons".
	remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_extentions');
}

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

Where do I put this code?

How to Hide the "WP Maps Block" Meta Box

function plt_hide_wp_google_map_plugin_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Hide the "WP Maps Block" meta box.
	remove_meta_box('wp_maps_block_metabox', $screen->id, 'advanced');
}

add_action('add_meta_boxes', 'plt_hide_wp_google_map_plugin_metaboxes', 20);