Browse: Home / Functions /


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 #


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


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

Default value: false


(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