[buddypress-trac] [BuddyPress] #3521: meta_query parameter for template loops (bp_has_activities(), etc)

buddypress-trac noreply at wordpress.org
Fri Apr 26 17:46:45 UTC 2013


#3521: meta_query parameter for template loops (bp_has_activities(), etc)
-------------------------+-----------------------
 Reporter:  sboisvert    |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  high         |   Milestone:  1.8
Component:  Activity     |     Version:
 Severity:  major        |  Resolution:
 Keywords:               |
-------------------------+-----------------------

Comment (by boonebgorges):

 In [changeset:"6948"]:
 {{{
 #!CommitTicketReference repository="" revision="6948"
 Introduces meta_query paramater for bp_has_activities() stack

 This will allow plugin and theme authors to filter the contents of the
 activity
 stream based on information stored in the activitymeta table, using the
 powerful meta_query syntax familiar from the 'meta_query' WP_Query param.

 Also adds unit test for 'meta_query' in BP_Activity_Activity::get(), and
 integration test for bp_has_activities(). These tests are primarily
 designed
 to ensure that our param gets passed properly down the stack; we rely on
 WP
 to get the meta_query logic right.

 See #3521

 Props ericlewis
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3521#comment:13>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list