bbp_get_topic_engagements( int $topic_id )

Get the users who have engaged in a topic


Description Description


Parameters Parameters

$topic_id

(Optional) Topic id


Top ↑

Return Return

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


Top ↑

Source Source

File: includes/users/engagements.php

function bbp_get_topic_engagements( $topic_id = 0 ) {
	$topic_id = bbp_get_topic_id( $topic_id );
	$users    = bbp_get_users_for_object( $topic_id, '_bbp_engagement' );

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

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.