Skip to:

Opened 13 months ago

Last modified 3 months ago

#8371 new enhancement

A function to get pieces of data specific to BuddyPress for a member

Reported by: imath Owned by:
Milestone: 10.0.0 Priority: normal
Severity: normal Version:
Component: Members Keywords: has-patch dev-feedback needs-refresh


If the populate_extras argument is set to true the BP_User_Query will populate each found users with pieces of data specific to BuddyPress:

  • the last time the each user were active,
  • the latest activity update of each user,
  • the number of friends each user has.

I believe we should have a function to get these for one member. This would make it easier for the BP REST API to have a consistent item schema. See

The function in the attached patch is making use of the BP_Core_User::get_user_extras() method, but what about a BP_User class extending the WP_User one that would do this extra populating for BP_User_Query and a function to get one BP Member?

What's your opinion about it?

Attachments (1)

8371.patch (4.1 KB) - added by imath 13 months ago.

Download all attachments as: .zip

Change History (2)

13 months ago

#1 @espellcaste
3 months ago

  • Keywords needs-refresh added
  • Milestone changed from Up Next to 10.0.0
Note: See TracTickets for help on using tickets.