bbp_get_forum_topic_count_hidden( int $forum_id, boolean $integer = false )

Return total hidden topic count of a forum (hidden includes trashed and spammed topics)

Description

Parameters

$forum_id

(int) (Optional) Topic id

$integer

(boolean) (Optional) Whether or not to format the result

Default value: false

Return

(int) Topic hidden topic count

Source

File: bp-forums/forums/template.php

	function bbp_get_forum_topic_count_hidden( $forum_id = 0, $integer = false ) {
		$forum_id = bbp_get_forum_id( $forum_id );
		$topics   = (int) get_post_meta( $forum_id, '_bbp_topic_count_hidden', true );
		$filter   = ( true === $integer ) ? 'bbp_get_forum_topic_count_hidden_int' : 'bbp_get_forum_topic_count_hidden';

		return apply_filters( $filter, $topics, $forum_id );
	}

Changelog

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