bbp_get_forum_topic_count_hidden

  • apply_filters( 'bbp_get_forum_topic_count_hidden', (int) $topics, $forum_id )

    Source Reference:

    • Component: bbPress :: bbp-forum
      File: /bbp-includes/bbp-forum-template.php :: Trac Source Line: 1268
      	 * @uses get_post_meta() To get the hidden topic count
      	 * @uses apply_filters() Calls 'bbp_get_forum_topic_count_hidden' with
      	 *                        the hidden topic count and forum id
      	 * @return int Topic hidden topic count
      	 */
      	function bbp_get_forum_topic_count_hidden( $forum_id = 0 ) {
      		$forum_id = bbp_get_forum_id( $forum_id );
      		$topics   = get_post_meta( $forum_id, '_bbp_topic_count_hidden', true );
      
      		return apply_filters( 'bbp_get_forum_topic_count_hidden', (int) $topics, $forum_id );
      	}
      
      /**
       * Output the status of the forum
       *
       * @since bbPress (r2667)
       *
       * @param int $forum_id Optional. Forum id
       * @uses bbp_get_forum_status() To get the forum status
       */
      

Comments are closed.