Usage of do_action_ref_array in bp-follow-classes.php
-
Hi r-a-y,
I was wondering about the usage of
do_action_ref_array
in the save function in bp-follow-classes.php.For example:
do_action_ref_array( 'bp_follow_after_save', array( &$this ) );
My aim is to hook in but I’m having trouble accessing
$this
inside my callback.function my_callback( &$arg ) { // Do something. } add_action( 'bp_follow_after_save', 'my_callback' );
I’d usually do something like
echo $arg[0]
but in this case$this
is an object.Considering it’s an object, would I do this instead
$arg[0]->leader_id
?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Usage of do_action_ref_array in bp-follow-classes.php’ is closed to new replies.