LLMS_Admin_Menus::instructor_menu_hack()
Removes edit.php from the admin menu for instructors/asst instructors note that the post screen is still technically accessible.
Description Description
.. 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
See also See also
Return Return
(void)
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' ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.13.0 | Introduced. |