Skip to:
Content

BuddyPress.org

Opened 3 years ago

Closed 3 years ago

#8504 closed defect (bug) (fixed)

Introduce a new function to get a list of activity type labels keyed by their type names

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: 9.0.0 Priority: normal
Severity: normal Version:
Component: Activity Keywords: has-patch
Cc:

Description

To migrate the Latest Activity Widget as a Block Widget, we need this type of list. Existing activity functions about getting this kind of list are not matching this need.

This function will be primary use to improve the BP REST API Components get_items endpoint to fetch this list and build the Block's Activity type multi select box setting.

Attachments (1)

8504.patch (1.6 KB) - added by imath 3 years ago.

Download all attachments as: .zip

Change History (2)

@imath
3 years ago

#1 @imath
3 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 12987:

Introduce a new function to get a list of type labels keyed by names

bp_activity_get_types_list() returns an array of activity type labels keyed by activity type names. It satisfies a need which appeared working on a new Activity BP Block.

Fixes #8504

Note: See TracTickets for help on using tickets.