learndash_get_group_leader_groups_users( int $user_id, boolean $by_group = false, boolean $totals_only = false )
Gets the list or count of group users for a group leader.
Description #
Parameters #
- $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 users.
Default value: false
Return #
(int|array) An array of user IDs or user count.
Source #
File: includes/ld-reports.php