Tips on Customizing WP Courses LMS – Online Course Builder, eLearning, and Learning Management System

How to Hide WP Courses LMS Admin Menus

function plt_hide_wp_courses_menus() {
	//Hide "WP Courses".
	remove_menu_page('wpc_settings');
	//Hide "WP Courses → Dashboard".
	remove_submenu_page('wpc_settings', 'wpc_settings');
	//Hide "WP Courses → Setup and Help".
	remove_submenu_page('wpc_settings', 'wpc_help');
	//Hide "WP Courses → Options".
	remove_submenu_page('wpc_settings', 'wpc_options');
	//Hide "WP Courses → Teachers".
	remove_submenu_page('wpc_settings', 'edit.php?post_type=teacher');
	//Hide "WP Courses → Course Categories".
	remove_submenu_page('wpc_settings', 'edit-tags.php?taxonomy=course-category&post_type=course');
	//Hide "WP Courses → Course Difficulties".
	remove_submenu_page('wpc_settings', 'edit-tags.php?taxonomy=course-difficulty&post_type=course');
	//Hide "WP Courses → Courses".
	remove_submenu_page('wpc_settings', 'edit.php?post_type=course');
	//Hide "WP Courses → Lessons".
	remove_submenu_page('wpc_settings', 'edit.php?post_type=lesson');
	//Hide "WP Courses → Quizzes".
	remove_submenu_page('wpc_settings', 'edit.php?post_type=wpc-quiz');
	//Hide "WP Courses → Order Lessons and Manage Modules".
	remove_submenu_page('wpc_settings', 'order_lessons');
	//Hide "WP Courses → Order Courses".
	remove_submenu_page('wpc_settings', 'order_courses');
	//Hide "WP Courses → Students Progress".
	remove_submenu_page('wpc_settings', 'manage_students');
	//Hide "WP Courses → Premium".
	remove_submenu_page('wpc_settings', 'wpc_premium');
}

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

Where do I put this code?

How to Hide WP Courses LMS Meta Boxes

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

	//Hide the "Lesson Video" meta box.
	remove_meta_box('wpc_lesson_video', $screen->id, 'side');
	//Hide the "Connected Courses" meta box.
	remove_meta_box('wpc_connected_course_to_lesson', $screen->id, 'side');
	//Hide the "Lesson Restriction" meta box.
	remove_meta_box('wpc_lesson_restriction', $screen->id, 'side');
	//Hide the "Quiz Options" meta box.
	remove_meta_box('wpcq_options_meta', $screen->id, 'normal');
	//Hide the "Quiz" meta box.
	remove_meta_box('wpcq_meta', $screen->id, 'normal');
	//Hide the "Course Details" meta box.
	remove_meta_box('wpc_sectionid', $screen->id, 'side');
	//Hide the "Manage Course Lessons" meta box.
	remove_meta_box('wpc_course_lessons', $screen->id, 'normal');
	//Hide the "Requirements" meta box.
	remove_meta_box('wpc_requirements_wrapper', $screen->id, 'normal');
}

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