bbp_get_subscribers( int $object_id,  $type = 'post' )

Get the users who have subscribed


Description Description


Parameters Parameters

$object_id

(Optional) ID of object (forum, topic, or something else)


Top ↑

Source Source

File: includes/users/engagements.php

function bbp_get_subscribers( $object_id = 0, $type = 'post' ) {
	$users = bbp_get_users_for_object( $object_id, '_bbp_subscription', $type );

	// Filter & return
	return (array) apply_filters( 'bbp_get_subscribers', $users, $object_id, $type );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.