Changeset 2981 for branches/plugin/bbp-includes/bbp-forum-template.php
- Timestamp:
- 04/03/2011 07:09:48 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-forum-template.php
r2972 r2981 1142 1142 function bbp_get_forum_hidden_topic_count( $forum_id = 0 ) { 1143 1143 $forum_id = bbp_get_forum_id( $forum_id ); 1144 $topics = get_post_meta( $forum_id, '_bbp_topic_count_hidden', true );1144 $topics = get_post_meta( $forum_id, '_bbp_topic_count_hidden', true ); 1145 1145 1146 1146 return apply_filters( 'bbp_get_forum_hidden_topic_count', (int) $topics, $forum_id ); 1147 }1148 1149 /**1150 * Output total voice count of a forum1151 *1152 * @since bbPress (r2567)1153 *1154 * @param int $forum_id Optional. Forum id1155 * @uses bbp_get_forum_voice_count() To get the forum voice count1156 */1157 function bbp_forum_voice_count( $forum_id = 0 ) {1158 echo bbp_get_forum_voice_count( $forum_id );1159 }1160 /**1161 * Return total voice count of a forum1162 *1163 * @since bbPress (r2567)1164 *1165 * @param int $forum_id Optional. Forum id1166 * @uses bbp_get_forum_id() To get the forum id1167 * @uses get_post_meta() To get the forum voice count1168 * @uses apply_filters() Calls 'bbp_get_forum_voice_count' with the1169 * voice count and forum id1170 * @return int Forum voice count1171 */1172 function bbp_get_forum_voice_count( $forum_id = 0 ) {1173 $forum_id = bbp_get_forum_id( $forum_id );1174 $voices = get_post_meta( $forum_id, '_bbp_forum_voice_count', true );1175 1176 return apply_filters( 'bbp_get_forum_voice_count', (int) $voices, $forum_id );1177 1147 } 1178 1148
Note: See TracChangeset
for help on using the changeset viewer.