bbp_get_forum_subforum_ids

  • apply_filters( 'bbp_get_forum_subforum_ids', $subforum_ids, $forum_id )

    Source Reference:

    • Component: bbPress :: bbp-forum
      File: /bbp-includes/bbp-forum-functions.php :: Trac Source Line: 1004
       * @param int $forum_id Forum id
       * @uses bbp_get_forum_post_type() To get the forum post type
       * @uses bbp_get_public_child_ids() To get the forum ids
       * @uses apply_filters() Calls 'bbp_forum_query_subforum_ids' with the subforum
       *                        ids and forum id
       */
      function bbp_forum_query_subforum_ids( $forum_id ) {
      	$subforum_ids = bbp_get_public_child_ids( $forum_id, bbp_get_forum_post_type() );
      
      	return apply_filters( 'bbp_get_forum_subforum_ids', $subforum_ids, $forum_id );
      }
      
      /**
       * Returns the forum's last reply id
       *
       * @since bbPress (r2908)
       *
       * @param int $forum_id Forum id
       * @param int $topic_ids Optional. Topic ids
       * @uses wp_cache_get() To check for cache and retrieve it
      

Comments are closed.