Tips on Customizing VenoMaps – geo map and custom markers

How to Hide VenoMaps Admin Menus

function plt_hide_venomaps_menus() {
	//Hide "Settings → VenoMaps".
	remove_submenu_page('options-general.php', 'venomaps');

	//Hide "VenoMaps".
	//Hide "VenoMaps → All maps".
	remove_submenu_page('edit.php?post_type=venomaps', 'edit.php?post_type=venomaps');
	//Hide "VenoMaps → Add new".
	remove_submenu_page('edit.php?post_type=venomaps', 'post-new.php?post_type=venomaps');

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

Where do I put this code?

How to Hide VenoMaps Meta Boxes

function plt_hide_venomaps_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {

	//Hide the "Map Shortcode" meta box.
	remove_meta_box('venomaps_copy_shortcode', $screen->id, 'normal');
	//Hide the "Map Options" meta box.
	remove_meta_box('venomaps_map_box', $screen->id, 'normal');
	//Hide the "Markers" meta box.
	remove_meta_box('venomaps_marker_box', $screen->id, 'normal');
	//Hide the "Geolocation" meta box.
	remove_meta_box('venomaps_geolocation_box', $screen->id, 'side');

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