[buddypress-trac] [BuddyPress Trac] #5943: BP Groups Hooks Documentation

buddypress-trac noreply at wordpress.org
Fri Feb 13 16:54:35 UTC 2015

#5943: BP Groups Hooks Documentation
 Reporter:  tw2113            |       Owner:
     Type:  task              |      Status:  new
 Priority:  normal            |   Milestone:  Future Release
Component:  Component - Core  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |

Comment (by boonebgorges):

 Replying to [comment:8 tw2113]:
 > We have a small case of duplicate action hook names with no direct way
 to differentiate between the two. The hook is "loop_end" in bp-groups-
 template.php and is used for both the Members and the Invites methods.
 > Thoughts on how to handle this? Pass in a string indicating which is
 being associated at that moment? Graceful renaming of one or both of them?

 We can't rename them. It would be fine to pass an additional parameter -
 `$this` would make the most sense, as the loop type can be inferred from
 the template object. Let's do this as part of a separate ticket, please,
 as it's not directly related to documentation.

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

More information about the buddypress-trac mailing list