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.


Top ↑

Return Return

(bool) Returns true if the user has the student, false if it doesn't


Top ↑

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 );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
7.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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