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

(Optional) Topic id

$integer

(Optional) Whether or not to format the result

Default value: false

Return

(int) Topic hidden topic count

Source

File: bp-forums/forums/template.php

1586
1587
1588
1589
1590
1591
1592
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.