[buddypress-trac] [BuddyPress Trac] #5480: Filters for new activity query

buddypress-trac noreply at wordpress.org
Thu Mar 27 14:54:50 UTC 2014


#5480: Filters for new activity query
-------------------------+------------------------------
 Reporter:  mpa4hu       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Core         |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by boonebgorges):

 The WHERE condition filter is still the same:
 https://buddypress.trac.wordpress.org/browser/trunk/bp-activity/bp-
 activity-classes.php#L388

 But I think you can avoid both filters by passing a `meta_query` parameter
 to `bp_has_activities()`. This is much better practice than filtering the
 SQL directly.

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


More information about the buddypress-trac mailing list