Tips on Customizing WordPress ERP, HR, CRM, and Project Management Plugin – Business Manager

How to Hide Business Manager Admin Menus

function plt_hide_business_manager_menus() {
	//Hide "Business Manager".
	remove_menu_page('business-manager');
	//Hide "Business Manager → Dashboard".
	remove_submenu_page('business-manager', 'business-manager');
	//Hide "Business Manager → Announcements".
	remove_submenu_page('business-manager', 'edit.php?post_type=bm-announcement&orderby=title&order=asc');
	//Hide "Business Manager → Employees".
	remove_submenu_page('business-manager', 'edit.php?post_type=bm-employee&orderby=_bm_employee_last_name&order=asc');
	//Hide "Business Manager →  Calendar".
	remove_submenu_page('business-manager', 'business-manager-calendar');
	//Hide "Business Manager →  Leave".
	remove_submenu_page('business-manager', 'edit.php?post_type=bm-leave&orderby=_bm_leave_start&order=desc');
	//Hide "Business Manager →  Reviews".
	remove_submenu_page('business-manager', 'edit.php?post_type=bm-review&orderby=_bm_review_date&order=desc');
	//Hide "Business Manager → Projects".
	remove_submenu_page('business-manager', 'edit.php?post_type=bm-project&orderby=title&order=asc');
	//Hide "Business Manager → Clients".
	remove_submenu_page('business-manager', 'edit.php?post_type=bm-client&orderby=_bm_client&order=asc');
	//Hide "Business Manager → Departments".
	remove_submenu_page('business-manager', 'edit-tags.php?taxonomy=bm-department&post_type=bm-employee');
	//Hide "Business Manager → Documents".
	remove_submenu_page('business-manager', 'edit.php?post_type=bm-document&orderby=title&order=asc');
	//Hide "Business Manager → Settings".
	remove_submenu_page('business-manager', 'business-manager-general');
}

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

Where do I put this code?

How to Hide Business Manager Meta Boxes

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

	//Hide the "Settings" meta box.
	remove_meta_box('_bm_project_settings_box', $screen->id, 'normal');
	//Hide the "Timeline" meta box.
	remove_meta_box('_bm_project_timeline_box', $screen->id, 'normal');
	//Hide the "Tasks" meta box.
	remove_meta_box('_bm_project_tasks_box', $screen->id, 'normal');
	//Hide the "Files & Documents" meta box.
	remove_meta_box('_bm_project_files_box', $screen->id, 'normal');
	//Hide the "Notes" meta box.
	remove_meta_box('_bm_project_notes_box', $screen->id, 'normal');
	//Hide the "Client Details" meta box.
	remove_meta_box('_bm_client_details_box', $screen->id, 'normal');
	//Hide the "Files & Documents" meta box.
	remove_meta_box('_bm_client_files_box', $screen->id, 'normal');
	//Hide the "Notes" meta box.
	remove_meta_box('_bm_client_notes_box', $screen->id, 'normal');
	//Hide the "Details" meta box.
	remove_meta_box('_bm_review_details_box', $screen->id, 'normal');
	//Hide the "Ratings" meta box.
	remove_meta_box('_bm_review_ratings_box', $screen->id, 'normal');
	//Hide the "Summary" meta box.
	remove_meta_box('_bm_review_summary_box', $screen->id, 'normal');
	//Hide the "Goals" meta box.
	remove_meta_box('_bm_review_goals_box', $screen->id, 'normal');
	//Hide the "Files" meta box.
	remove_meta_box('_bm_review_file_list_box', $screen->id, 'normal');
	//Hide the "Notes" meta box.
	remove_meta_box('_bm_review_notes_box', $screen->id, 'normal');
	//Hide the "Latest Version" meta box.
	remove_meta_box('_bm_document_latest_box', $screen->id, 'normal');
	//Hide the "Versions" meta box.
	remove_meta_box('_bm_document_file_list_box', $screen->id, 'normal');
	//Hide the "Notes" meta box.
	remove_meta_box('_bm_document_notes_box', $screen->id, 'normal');
	//Hide the "Access" meta box.
	remove_meta_box('_bm_employee_access_box', $screen->id, 'side');
	//Hide the "Assets" meta box.
	remove_meta_box('_bm_employee_assets_box_inactive', $screen->id, 'side');
	//Hide the "Upcoming Leave" meta box.
	remove_meta_box('_bm_employee_leave_box', $screen->id, 'side');
	//Hide the "Employee Details" meta box.
	remove_meta_box('_bm_employee_details_box', $screen->id, 'normal');
	//Hide the "Files & Documents" meta box.
	remove_meta_box('_bm_employee_files_box', $screen->id, 'normal');
	//Hide the "Notes" meta box.
	remove_meta_box('_bm_employee_notes_box', $screen->id, 'normal');
	//Hide the "Leave Details" meta box.
	remove_meta_box('_bm_leave_details_box', $screen->id, 'normal');
	//Hide the "Plain Text Email Content" meta box.
	remove_meta_box('_bm_email_details_box', $screen->id, 'normal');
	//Hide the "Notify Employees" meta box.
	remove_meta_box('_bm_announcement_details_box', $screen->id, 'normal');
}

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