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
Return Return
(array|bool) Results if the topic has any engagements, otherwise false
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 ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |