[buddypress-trac] [BuddyPress] #3312: Allow replacement of groups object in group component loading

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Jul 14 06:32:27 UTC 2011


#3312: Allow replacement of groups object in group component loading
--------------------------+-----------------
  Reporter:  ddean        |      Owner:
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  1.3
 Component:  Groups       |    Version:  1.3
Resolution:               |   Keywords:
--------------------------+-----------------

Comment (by DJPaul):

 Requiring plugin authors to subclass BP_Groups_Group, or use a little OOP,
 is in no way a downside. We're going to expect certain methods and
 functions in that class, and if they are not implemented in a custom
 implementation, we're going to get bug reports which aren't our fault.

 If the aim is to change parts of the existing class, sure, use
 apply_filters_ref_array. If it's to load in your own class, filter the
 class name before creation. Need a similar filter in similar places
 throughout BP. Up to you.

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


More information about the buddypress-trac mailing list