[buddypress-trac] [BuddyPress] #1721: Filter Hooks needed for plugins to custom filter activity streams [Has patch]

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Feb 8 11:54:23 UTC 2010


#1721: Filter Hooks needed for plugins to custom filter activity streams [Has
patch]
-----------------------+----------------------------------------------------
  Reporter:  rvenable  |       Owner:           
      Type:  defect    |      Status:  closed   
  Priority:  major     |   Milestone:  1.2      
Resolution:  invalid   |    Keywords:  has-patch
-----------------------+----------------------------------------------------
Changes (by apeatling):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 You shouldn't need to do any of this. There is a table called
 wp_bp_activity_meta that you can use to store meta and use the functions
 bp_activity_get_meta(), bp_activity_get_meta(), bp_activity_delete_meta().

 If you need to get all meta for all activities at once, rather than
 querying for every item them you can use the filter 'bp_has_activities' to
 loop the found activities and add the meta you need.

 If we start adding filters to SQL queries then it's not possible to ever
 change the underlaying schema without causing major issues.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/1721#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list