Skip to:
Content

BuddyPress.org

Opened 6 years ago

Last modified 9 months ago

#8371 new enhancement

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

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

Description

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 ​https://github.com/buddypress/BP-REST/pull/355.

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 6 years ago.

Download all attachments as: .zip

Change History (9)

@imath
6 years ago

#1 @espellcaste
5 years ago

  • Keywords needs-refresh added
  • Milestone Up Next → 10.0.0

#2 @imath
5 years ago

  • Milestone 10.0.0 → Up Next

We won't have time to work on these during 10.0.0, sorry about it.

#3 @imath
4 years ago

  • Milestone Up Next → 12.0.0

#4 @imath
3 years ago

  • Milestone 12.0.0 → Under Consideration

#5 @espellcaste
2 years ago

  • Milestone Under Consideration → Up Next

Let's look into this next.

#6 @imath
2 years ago

  • Milestone Up Next → 15.0.0

#7 @espellcaste
2 years ago

  • Milestone 15.0.0 → Under Consideration

This ticket was mentioned in ​Slack in #buddypress by espellcaste. ​View the logs.


9 months ago

Note: See TracTickets for help on using tickets.