bbp_get_forum_content( int $forum_id )
Return the content of the forum
Description Description
Parameters Parameters
- $forum_id
-
(Optional) Topic id
Return Return
(string) Content of the forum
Source Source
File: includes/forums/template.php
function bbp_get_forum_content( $forum_id = 0 ) {
$forum_id = bbp_get_forum_id( $forum_id );
// Check if password is required
if ( post_password_required( $forum_id ) ) {
return get_the_password_form();
}
$content = get_post_field( 'post_content', $forum_id );
// Filter & return
return apply_filters( 'bbp_get_forum_content', $content, $forum_id );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |