LLMS_User_Permissions::instructor_has_student( int $current_user_id, int $requested_user_id )
Determine if an instructor has a student.
Parameters Parameters
- $current_user_id
-
(int) (Required) WP User ID of the user requesting to perform the action.
- $requested_user_id
-
(int) (Required) WP User ID of the user the action will be performed on.
Return Return
(bool) Returns true if the user has the student, false if it doesn't
Source Source
File: includes/class.llms.user.permissions.php
protected function instructor_has_student( $current_user_id, $requested_user_id ) {
$instructor = llms_get_instructor( $current_user_id );
return $instructor && $instructor->has_student( $requested_user_id );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 7.6.0 | Introduced. |