BP_Activity_Follow::get_following( int $user_id )
Get the user IDs that a user is following.
Description
Parameters
- $user_id
-
(int) (Required) The user ID to fetch.
Return
(array)
Source
File: bp-activity/classes/class-bp-activity-follow.php
public static function get_following( $user_id ) { global $bp, $wpdb; return $wpdb->get_col( $wpdb->prepare( "SELECT leader_id FROM {$bp->activity->table_name_follow} WHERE follower_id = %d", $user_id ) ); }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | Introduced. |
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.