bbp_forum_query_subforum_ids( int $forum_id )
Returns the forum’s subforum ids
Description
Only forums with published status are returned
Parameters
- $forum_id
-
(Required) Forum id
Source
File: bp-forums/forums/functions.php
function bbp_forum_query_subforum_ids( $forum_id ) { $subforum_ids = bbp_get_all_child_ids( $forum_id, bbp_get_forum_post_type() ); //usort( $subforum_ids, '_bbp_forum_query_usort_subforum_ids' ); return apply_filters( 'bbp_get_forum_subforum_ids', $subforum_ids, $forum_id ); }
Changelog
Version | Description |
---|---|
bbPress (r2908) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.