bbp_get_topic_voice_count( int $topic_id, $integer = false )
Return total voice count of a topic
Description Description
Parameters Parameters
- $topic_id
-
(Optional) Topic id
Return Return
(int) Voice count of the topic
Source Source
File: includes/topics/template.php
function bbp_get_topic_voice_count( $topic_id = 0, $integer = false ) { $topic_id = bbp_get_topic_id( $topic_id ); $voices = (int) get_post_meta( $topic_id, '_bbp_voice_count', true ); $filter = ( true === $integer ) ? 'bbp_get_topic_voice_count_int' : 'bbp_get_topic_voice_count'; return apply_filters( $filter, $voices, $topic_id ); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |