bbp_get_forum_subforum_count

  • apply_filters( 'bbp_get_forum_subforum_count', (int) $forum_count, $forum_id )

    Source Reference:

    • Component: bbPress :: bbp-forum
      File: /bbp-includes/bbp-forum-template.php :: Trac Source Line: 1136
      	 * @uses get_post_meta() To get the subforum count
      	 * @uses apply_filters() Calls 'bbp_get_forum_subforum_count' with the
      	 *                        subforum count and forum id
      	 * @return int Forum's subforum count
      	 */
      	function bbp_get_forum_subforum_count( $forum_id = 0 ) {
      		$forum_id    = bbp_get_forum_id( $forum_id );
      		$forum_count = get_post_meta( $forum_id, '_bbp_forum_subforum_count', true );
      
      		return apply_filters( 'bbp_get_forum_subforum_count', (int) $forum_count, $forum_id );
      	}
      
      /**
       * Output total topic count of a forum
       *
       * @since bbPress (r2464)
       *
       * @param int $forum_id Optional. Forum id
       * @param bool $total_count Optional. To get the total count or normal count?
       * @uses bbp_get_forum_topic_count() To get the forum topic count
      

Comments are closed.