* @uses bbp_get_topic_forum_id() To get topic's forum id
* @uses apply_filters() Calls 'bbp_get_topic_forum' with the forum
* title and topic id
* @return string Topic forum title
*/
function bbp_get_topic_forum_title( $topic_id = 0 ) {
$topic_id = bbp_get_topic_id( $topic_id );
$forum_id = bbp_get_topic_forum_id( $topic_id );
return apply_filters( 'bbp_get_topic_forum', bbp_get_forum_title( $forum_id ), $topic_id );
}
/**
* Output the forum id a topic belongs to
*
* @since bbPress (r2491)
*
* @param int $topic_id Optional. Topic id
* @uses bbp_get_topic_forum_id()
*/