LLMS_User_Permissions::is_current_user_instructor()
Determines if the current user is an instructor.
Return Return
(bool)
Source Source
File: includes/class.llms.user.permissions.php
public static function is_current_user_instructor() { return ( current_user_can( 'lifterlms_instructor' ) && current_user_can( 'list_users' ) && ! current_user_can( 'manage_lifterlms' ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.34.0 | Introduced. |