[buddypress-trac] [BuddyPress Trac] #7609: Add "IDs only" return format option for BP_Groups_Group::get().
buddypress-trac
noreply at wordpress.org
Mon Oct 16 16:43:33 UTC 2017
#7609: Add "IDs only" return format option for BP_Groups_Group::get().
-------------------------+--------------------
Reporter: dcavins | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.0
Component: Groups | Version: 2.9.0
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+--------------------
Changes (by espellcaste):
* cc: contato@… (added)
Comment:
I find it really useful. On the wp-cli-buddypress, we are doing exactly
how you described. Using wp_list_pluck to fetch the only the ids, but the
whole object is being fetched.
https://github.com/buddypress/wp-cli-
buddypress/blob/dev/components/group.php#L410-L413
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7609#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list