bbp_forum_post_count( int $forum_id, bool $total_count = true, boolean $integer = false )
Output total post count of a forum
Description
Parameters
- $forum_id
-
(Optional) Forum id
- $total_count
-
(Optional) To get the total count or normal count?
Default value: true
- $integer
-
(Optional) Whether or not to format the result
Default value: false
Source
File: bp-forums/forums/template.php
function bbp_forum_post_count( $forum_id = 0, $total_count = true, $integer = false ) { echo bbp_get_forum_post_count( $forum_id, $total_count, $integer ); }
Changelog
Version | Description |
---|---|
bbPress (r2954) | 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.