learndash_get_group_leader_groups_courses

learndash_get_group_leader_groups_courses( int $group_leader_user_id,  boolean $by_group = false,  boolean $totals_only = false )

Gets the list or count of group courses for a group leader.


Description #


Parameters #

$group_leader_user_id

(int) (Optional) Group leader user ID. Defaults to the current user ID. Default 0.

$by_group

(boolean) (Optional) Whether to get user IDs or count sorted by group.

Default value: false

$totals_only

(boolean) (Optional) Whether to get the only count of courses.

Default value: false


Return #

(int|array) An array of user IDs or user count.


Source #

File: includes/ld-reports.php