bbp_is_topic_closed( int $topic_id )

Is the topic closed to new replies?

Description

Parameters

$topic_id

(Optional) Topic id

Return

(bool) True if closed, false if not.

Source

File: bp-forums/topics/template.php

	function bbp_is_topic_closed( $topic_id = 0 ) {
		$closed = bbp_get_topic_status( $topic_id ) === bbp_get_closed_status_id();
		return (bool) apply_filters( 'bbp_is_topic_closed', (bool) $closed, $topic_id );
	}

Changelog

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