Tips on Customizing VW Property Listing

How to Hide VW Property Listing Admin Menus

function plt_hide_vw_property_listing_menus() {
	//Hide "VW Property Info".
	remove_menu_page('vw-nafd-settings');

	//Hide "Properties".
	remove_menu_page('edit.php?post_type=vplaproperties');
	//Hide "Properties → Properties".
	remove_submenu_page('edit.php?post_type=vplaproperties', 'edit.php?post_type=vplaproperties');
	//Hide "Properties → Add New".
	remove_submenu_page('edit.php?post_type=vplaproperties', 'post-new.php?post_type=vplaproperties');
	//Hide "Properties → Properties Packages".
	remove_submenu_page('edit.php?post_type=vplaproperties', 'edit-tags.php?taxonomy=vplapropertiescat&post_type=vplaproperties');
}

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

Where do I put this code?

How to Hide the "Assign Agent" Meta Box

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

	//Hide the "Assign Agent" meta box.
	remove_meta_box('propertiesdiv', $screen->id, 'side');
}

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