bp_get_followers( array $args = '' )

Fetch the user IDs of all the followers of a particular user.

Description

Parameters

$args

(array) (Optional) Array of arguments.

  • 'user_id'
    (int) The user ID to get followers for.

Default value: ''

Return

(array)

Source

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

function bp_get_followers( $args = '' ) {

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

	return apply_filters( 'bp_get_followers', BP_Activity_Follow::get_followers( $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.