bp_get_following( array $args = '' )

Fetch the user IDs of all the users a particular user is following.

Description

Parameters

$args

(array) (Optional) Array of arguments.

  • 'user_id'
    (int) The user ID to fetch following user IDs for.

Default value: ''

Return

(array)

Source

File: bp-activity/bp-activity-functions.php

function bp_get_following( $args = '' ) {

	$r = wp_parse_args( $args, array(
		'user_id' => bp_displayed_user_id()
	) );

	return apply_filters( 'bp_get_following', BP_Activity_Follow::get_following( $r['user_id'] ) );
}

Changelog

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.