bbp_get_forum_content( int $forum_id )

Return the content of the forum

Description

Parameters

$forum_id

(int) (Optional) Topic id

Return

(string) Content of the forum

Source

File: bp-forums/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 );

		return apply_filters( 'bbp_get_forum_content', $content, $forum_id );
	}

Changelog

Changelog
Version Description
bbPress (r2780) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.