Removes edit.php from the admin menu for instructors/asst instructors

Description Description

Note: The post screen is still technically accessible.

Posts will need to be submitted for review as the instructors only actually have the capability of a contributor with regards to posts but this hack will allow instructors to publish new lessons, quizzes, & questions.

Top ↑

Return Return


Top ↑

Source Source

File: includes/admin/class.llms.admin.menus.php

	public function instructor_menu_hack() {
		$user = wp_get_current_user();
		if ( array_intersect( array( 'instructor', 'instructors_assistant' ), $user->roles ) ) {
			remove_menu_page( 'edit.php' );

Top ↑

Changelog Changelog

Version Description
3.13.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.