BP_Activity_Follow::__construct( int $leader_id, int $follower_id )
Constructor.
Description
Parameters
- $leader_id
-
(Required) The user ID of the user you want to follow.
- $follower_id
-
(Required) The user ID initiating the follow request.
Source
File: bp-activity/classes/class-bp-activity-follow.php
public function __construct( $leader_id = 0, $follower_id = 0 ) { if ( ! empty( $leader_id ) && ! empty( $follower_id ) ) { $this->leader_id = (int) $leader_id; $this->follower_id = (int) $follower_id; $this->populate(); } }
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.