Filter: sensei_learners_allowed_user_ids

apply_filters( 'sensei_learners_allowed_user_ids', $user_ids, $course_id ) → {Array.<int>}

Filter the user IDs that have permission to manage students in a given course.

Parameters:
Name Type Description
$user_ids Array.<int>

User IDs that have permission to manage students in a given course. Defaults to post author.

$course_id int

Course ID.

Since:
  • 4.24.4
Source:
Returns:

Filtered user IDs that have permission to manage students in a given course.

Type
Array.<int>