Reports::getGroupUsersList()
Get group’s member list for filter
Description
Source
File: bp-integrations/learndash/buddypress/Reports.php
protected function getGroupUsersList() { $generator = bp_ld_sync('buddypress')->sync->generator(groups_get_current_group()->id); $members = learndash_get_groups_users($generator->getLdGroupId()); array_unshift($members, (object) [ 'ID' => '', 'display_name' => __('All Students', 'buddyboss') ]); return wp_list_pluck($members, 'display_name', 'ID'); }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.