[buddypress-trac] [BuddyPress Trac] #5193: More hooks, more power! (in the messages component)

buddypress-trac noreply at wordpress.org
Fri Nov 21 22:44:10 UTC 2014

#5193: More hooks, more power! (in the messages component)
 Reporter:  slaFFik                 |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  2.2
Component:  Messaging               |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |

Comment (by boonebgorges):

 > everything is covered via do_action_ref_array and & sign. But as I
 understand, we need to leave this as is for backcompat, right?

 `do_action_ref_array()` is not required in this case. (It was a PHP4
 thing.) In PHP5, objects are passed by reference by default. Thus:
 `do_action( 'messages_message_before_save', $this );` Only use
 `do_action_ref_array()` if you need a parameter that is *not* the first
 one to be passed by reference.

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

More information about the buddypress-trac mailing list