Tips on Customizing Tutor LMS – eLearning and online course solution

How to Hide Tutor LMS Admin Menus

function plt_hide_tutor_menus() {
	//Hide "Dashboard →".
	remove_submenu_page('index.php', 'tutor-setup');

	//Hide "Tutor LMS".
	remove_menu_page('tutor');
	//Hide "Tutor LMS → Courses".
	remove_submenu_page('tutor', 'tutor');
	//Hide "Tutor LMS → Categories".
	remove_submenu_page('tutor', 'edit-tags.php?taxonomy=course-category&post_type=courses');
	//Hide "Tutor LMS → Tags".
	remove_submenu_page('tutor', 'edit-tags.php?taxonomy=course-tag&post_type=courses');
	//Hide "Tutor LMS → Students".
	remove_submenu_page('tutor', 'tutor-students');
	//Hide "Tutor LMS → Announcements".
	remove_submenu_page('tutor', 'tutor_announcements');
	//Hide "Tutor LMS → Q & A".
	remove_submenu_page('tutor', 'question_answer');
	//Hide "Tutor LMS → Quiz Attempts".
	remove_submenu_page('tutor', 'tutor_quiz_attempts');
	//Hide "Tutor LMS → Add-ons".
	remove_submenu_page('tutor', 'tutor-addons');
	//Hide "Tutor LMS → Tools".
	remove_submenu_page('tutor', 'tutor-tools');
	//Hide "Tutor LMS → Settings".
	remove_submenu_page('tutor', 'tutor_settings');
	//Hide "Tutor LMS → Get Pro".
	remove_submenu_page('tutor', 'tutor-get-pro');
}

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

Where do I put this code?

How to Hide Tutor LMS Meta Boxes

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

	//Hide the "Course Builder" meta box.
	remove_meta_box('tutor-course-topics', $screen->id, 'advanced');
	//Hide the "Additional Data" meta box.
	remove_meta_box('tutor-course-additional-data', $screen->id, 'advanced');
	//Hide the "Video" meta box.
	remove_meta_box('tutor-course-videos', $screen->id, 'advanced');
	//Hide the "Course Settings" meta box.
	remove_meta_box('course-settings', $screen->id, 'advanced');
	//Hide the "Select Course" meta box.
	remove_meta_box('tutor-course-select', $screen->id, 'advanced');
	//Hide the "Lesson Video" meta box.
	remove_meta_box('tutor-lesson-videos', $screen->id, 'advanced');
	//Hide the "Attachments" meta box.
	remove_meta_box('tutor-lesson-attachments', $screen->id, 'advanced');
}

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