Admin::filter_courses_for_instructors()
Filter posts for the current instructor if insructor role is not administrator
Source
File: classes/Admin.php
public function filter_courses_for_instructors() { if ( ! current_user_can( 'administrator' ) && is_dozent_instructor() ) { remove_menu_page( 'edit-comments.php' ); //Comments add_filter( 'posts_clauses_request', [ $this, 'posts_clauses_request' ] ); } }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |