bbp_get_forum_status( int $forum_id )

Return the status of the forum

Description

Parameters

$forum_id

(int) (Optional) Forum id

Return

(string) Status of forum

Source

File: bp-forums/forums/template.php

	function bbp_get_forum_status( $forum_id = 0 ) {
		$forum_id = bbp_get_forum_id( $forum_id );
		$status   = get_post_meta( $forum_id, '_bbp_status', true );
		if ( empty( $status ) )
			$status = 'open';

		return apply_filters( 'bbp_get_forum_status', $status, $forum_id );
	}

Changelog

Changelog
Version Description
bbPress (r2667) 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.