Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Student_Bulk_Enroll::get_users( array $user_ids )
Get user details from user IDs
Parameters Parameters
- $user_ids
-
(array) (Required) WP user IDs
Return Return
(array) User details
Source Source
File: includes/admin/class.llms.student.bulk.enroll.php
private function get_users( $user_ids ) { // Prepare query arguments. $user_query_args = array( 'include' => $user_ids, // We need display names for notices. 'fields' => array( 'ID', 'display_name' ), ); $user_query = new WP_User_Query( $user_query_args ); $results = $user_query->get_results(); return empty( $results ) ? false : $results; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.20.0 | Introduced. |