How to Get leader_id and follower_id
-
Greetings,
I’m in the middle of creating a BP Follow hook for myCRED (the points management plugin) and I’m wondering how to get the dynamic values from the bp_follow_start_following action?
My add_action call looks like this:
add_action( 'bp_follow_start_following', array( $this, 'add_follow' ), 20, 1 );
And the action that I’m adding looks like this:
public function add_follow( $follow ) { global $wpdb, $bp; $follower_id = $follow->follower_id; $leader_id = $follow->leader_id; }
Am I going about this in the right way?
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to Get leader_id and follower_id’ is closed to new replies.