Browse: Home / Functions /


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 #


(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 users.

Default value: false

Return #

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

Source #

File: includes/ld-reports.php