Browse: Home / Functions /

learndash_get_report_user_ids

learndash_get_report_user_ids( int $user_id,  array $query_args = array() )

Gets the list of user IDs for the report.


Description #

This function will determine the list of users the current user can see. For example for group leader, it will show the only user within the leader’s groups. For admin, it will show all users.


Parameters #

$user_id

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

$query_args

(array) (Optional) User query arguments.

Default value: array()


Return #

(array) An array of user IDs.


Source #

File: includes/ld-reports.php


Changelog #

Changelog
Version Description
2.3.0 Introduced.