Yep, works perfectly 🙂
Maybe better like this :
add_action( 'bbp_template_before_single_forum' , 'xxxx_bbp_display_forum_description' );
function xxxx_bbp_display_forum_description() {
$display_forum_description = bbp_get_forum_content();
if ( bbp_is_single_forum() && ! empty( $display_forum_description ) ) {
echo '<div class="bbp-display-forum-description">';
echo $display_forum_description;
echo '</div>';
}
}
I found this solution :
add_action( 'bbp_template_before_single_forum' , 'xxxx_bbp_display_forum_description' );
function xxxx_bbp_display_forum_description() {
echo '<div>';
bbp_forum_content();
echo '</div>';
}