Warning: This function has been deprecated. bbPress (r6543) instead.

bbp_get_topic_subscribers( int $topic_id )

Get the users who have subscribed to the topic


Description Description


Parameters Parameters

$topic_id

(Optional) Topic id


Top ↑

Return Return

(array|bool) Results if the topic has any subscribers, otherwise false


Top ↑

Source Source

File: includes/users/engagements.php

function bbp_get_topic_subscribers( $topic_id = 0 ) {
	$users = bbp_get_users_for_object( $topic_id, '_bbp_subscription' );

	// Filter & return
	return (array) apply_filters( 'bbp_get_topic_subscribers', $users, $topic_id );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 bbPress (r6543)
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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