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 Description


Parameters Parameters

$group_leader_user_id

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

$by_group

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

Default value: false

$totals_only

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

Default value: false


Top ↑

Return Return

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


Top ↑

Source Source

File: includes/ld-reports.php


			

Top ↑

User Contributed Notes User Contributed Notes

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