Tips on Customizing CoSchool LMS – A complete Learning Management System to Create and Sell Your Courses Online

How to Hide CoSchool LMS Admin Menus

function plt_hide_coschool_menus() {
	//Hide "CoSchool".
	remove_menu_page('coschool');
	//Hide "CoSchool → Courses".
	remove_submenu_page('coschool', 'edit.php?post_type=course');
	//Hide "CoSchool → Lessons".
	remove_submenu_page('coschool', 'edit.php?post_type=lesson');
	//Hide "CoSchool → Quizzes".
	remove_submenu_page('coschool', 'edit.php?post_type=quiz');
	//Hide "CoSchool → Coupons".
	remove_submenu_page('coschool', 'edit.php?post_type=coupon');
	//Hide "CoSchool → Assignments".
	remove_submenu_page('coschool', 'edit.php?post_type=assignment');
	//Hide "CoSchool → Bundles".
	remove_submenu_page('coschool', 'edit.php?post_type=bundle');
	//Hide "CoSchool → Students".
	remove_submenu_page('coschool', 'students');
	//Hide "CoSchool → Enrollments".
	remove_submenu_page('coschool', 'enrollment');
	//Hide "CoSchool → Payments".
	remove_submenu_page('coschool', 'payments');
	//Hide "CoSchool → Reports".
	remove_submenu_page('coschool', 'reports');
	//Hide "CoSchool → Add-ons".
	remove_submenu_page('coschool', 'coschool-add-ons');
	//Hide "CoSchool → Settings".
	remove_submenu_page('coschool', 'coschool');
}

add_action('admin_menu', 'plt_hide_coschool_menus', 12);

Where do I put this code?

How to Hide CoSchool LMS Meta Boxes

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

	//Hide the "Course Configuration" meta box.
	remove_meta_box('coschool-course-settings', $screen->id, 'normal');
	//Hide the "Course Content" meta box.
	remove_meta_box('coschool-course-content', $screen->id, 'normal');
	//Hide the "Course FAQ" meta box.
	remove_meta_box('coschool-course-faq', $screen->id, 'normal');
	//Hide the "Banner Image" meta box.
	remove_meta_box('coschool-banner-image', $screen->id, 'side');
	//Hide the "Settings" meta box.
	remove_meta_box('coschool-coupon-settings', $screen->id, 'normal');
	//Hide the "Lesson Configuration" meta box.
	remove_meta_box('coschool-lesson-settings', $screen->id, 'normal');
	//Hide the "Quiz Configuration" meta box.
	remove_meta_box('coschool-quiz-settings', $screen->id, 'normal');
	//Hide the "Questions" meta box.
	remove_meta_box('coschool-quiz-questions', $screen->id, 'advanced');
	//Hide the "Assignment Configuration" meta box.
	remove_meta_box('coschool-assignment-settings', $screen->id, 'normal');
	//Hide the "Bundle Configuration" meta box.
	remove_meta_box('coschool-bundle-settings', $screen->id, 'normal');
	//Hide the "Configuration" meta box.
	remove_meta_box('coschool-question-config', $screen->id, 'side');
	//Hide the "Answers" meta box.
	remove_meta_box('coschool-question-answers', $screen->id, 'normal');
}

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

How to Hide the "WordPress Blogs & Tutorials" Dashboard Widget

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

	//Remove the "WordPress Blogs & Tutorials" widget.
	remove_meta_box('cx-overview', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_coschool_dashboard_widgets', 20);