[buddypress-trac] [BuddyPress Trac] #4988: bp_has_activities to accept multi scope

buddypress-trac noreply at wordpress.org
Mon Dec 22 21:46:51 UTC 2014

#4988: bp_has_activities to accept multi scope
 Reporter:  henrywright       |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  2.2
Component:  Activity          |     Version:  1.2
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |

Comment (by r-a-y):

 In [changeset:"9257"]:
 #!CommitTicketReference repository="" revision="9257"
 Activity: Support multiple scopes in `bp_has_activities()`.

 This commit:
 * Allows the `'scope'` parameter to support multiple scopes.  For example,
 `scope=friends,mentions`.  This can be a comma-delimited string or an
 * Makes the `'scope'` parameter available across the `bp_has_activities()`
 stack.  Previously, `'scope'` was only available for use in the
 `bp_has_activities()` loop.
 * Parses scopes using the `BP_Activity_Query` class to handle complex
 * Allows components to declare their own custom activity scopes.
 Components can also override existing activity arguments by setting the
 `'override'` key in their scope callback.  For an example, see how the
 friends component declares the `'friends'` scope in
 `bp_friends_filter_activity_scope()`.  Previously, it was not possible for
 components or third-party plugins to declare their own scopes without
 doing a fair bit of workarounds.

 See #4988.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4988#comment:23>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list