[buddypress-trac] [BuddyPress Trac] #5851: Add bp_has_activities param to exclude profile activity

buddypress-trac noreply at wordpress.org
Tue Sep 2 23:44:33 UTC 2014

#5851: Add bp_has_activities param to exclude profile activity
 Reporter:  tobyhawkins  |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Core         |     Version:
 Severity:  normal       |  Resolution:  invalid
 Keywords:               |
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


 tobyhawkins - Thanks very much for the suggestion. Your use case is
 totally valid, but the request is, as you suggest, a bit too specific to
 be appropriate for BP.

 However, what you're looking to accomplish will be very doable once #4988
 is in BP (probably for BP 2.2). We're still working on the exact syntax,
 but the precise logic of your suggestion patch would probably look
 something like this:

 bp_has_activities( array(
     'filter_query' => array(
             'item_id' => 0,
             'compare' => '>',
     // ...
 ) );

 Please monitor that ticket for updates, and feel free to chime in with
 additional thoughts. Thanks!

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

More information about the buddypress-trac mailing list