Tips on Customizing Essential Real Estate

How to Hide Essential Real Estate Admin Menus

function plt_hide_essential_real_estate_menus() {
	//Hide "User Packages".
	remove_menu_page('edit.php?post_type=user_package');
	//Hide "Invoices".
	remove_menu_page('edit.php?post_type=invoice');
	//Hide "Transaction logs".
	remove_menu_page('edit.php?post_type=trans_log');
	//Hide "Appearance → Real Estate Options".
	remove_submenu_page('themes.php', 'ere_options');

	//Hide "Essential Real Estate".
	remove_menu_page('ere_welcome');
	//Hide "Essential Real Estate → Welcome".
	remove_submenu_page('ere_welcome', 'ere_welcome');
	//Hide "Essential Real Estate → Real Estate Options".
	remove_submenu_page('ere_welcome', 'admin.php?page=ere_options');
	//Hide "Essential Real Estate → Setup Page".
	remove_submenu_page('ere_welcome', 'ere_setup');
	//Hide "Essential Real Estate → Add-ons".
	remove_submenu_page('ere_welcome', 'ere_addons');

	//Hide "Properties".
	remove_menu_page('edit.php?post_type=property');
	//Hide "Properties → All Properties".
	remove_submenu_page('edit.php?post_type=property', 'edit.php?post_type=property');
	//Hide "Properties → Add New".
	remove_submenu_page('edit.php?post_type=property', 'post-new.php?post_type=property');
	//Hide "Properties → Property Type".
	remove_submenu_page('edit.php?post_type=property', 'edit-tags.php?taxonomy=property-type&post_type=property');
	//Hide "Properties → Property Status".
	remove_submenu_page('edit.php?post_type=property', 'edit-tags.php?taxonomy=property-status&post_type=property');
	//Hide "Properties → Property Feature".
	remove_submenu_page('edit.php?post_type=property', 'edit-tags.php?taxonomy=property-feature&post_type=property');
	//Hide "Properties → Property Label".
	remove_submenu_page('edit.php?post_type=property', 'edit-tags.php?taxonomy=property-label&post_type=property');
	//Hide "Properties → Province / State".
	remove_submenu_page('edit.php?post_type=property', 'edit-tags.php?taxonomy=property-state&post_type=property');
	//Hide "Properties → City / Town".
	remove_submenu_page('edit.php?post_type=property', 'edit-tags.php?taxonomy=property-city&post_type=property');
	//Hide "Properties → Neighborhood".
	remove_submenu_page('edit.php?post_type=property', 'edit-tags.php?taxonomy=property-neighborhood&post_type=property');
	//Hide "Properties → Country".
	remove_submenu_page('edit.php?post_type=property', 'countries_settings');

	//Hide "Agents".
	remove_menu_page('edit.php?post_type=agent');
	//Hide "Agents → All Agents".
	remove_submenu_page('edit.php?post_type=agent', 'edit.php?post_type=agent');
	//Hide "Agents → Add New".
	remove_submenu_page('edit.php?post_type=agent', 'post-new.php?post_type=agent');
	//Hide "Agents → Agency".
	remove_submenu_page('edit.php?post_type=agent', 'edit-tags.php?taxonomy=agency&post_type=agent');

	//Hide "Packages".
	remove_menu_page('edit.php?post_type=package');
	//Hide "Packages → All Packages".
	remove_submenu_page('edit.php?post_type=package', 'edit.php?post_type=package');
	//Hide "Packages → Add New".
	remove_submenu_page('edit.php?post_type=package', 'post-new.php?post_type=package');
}

add_action('admin_menu', 'plt_hide_essential_real_estate_menus', 13);

Where do I put this code?

How to Hide Essential Real Estate Meta Boxes

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

	//Hide the "Property Information" meta box.
	remove_meta_box('property_meta_boxes', $screen->id, 'advanced');
	//Hide the "Agent Information" meta box.
	remove_meta_box('agent_meta_boxes', $screen->id, 'advanced');
	//Hide the "Package Setting" meta box.
	remove_meta_box('package_meta_boxes', $screen->id, 'advanced');
}

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