bbp_forum_query_topic_ids( int $forum_id )
Returns the forum’s topic ids
Description
Only topics with published and closed statuses are returned
Parameters
- $forum_id
-
(Required) Forum id
Source
File: bp-forums/forums/functions.php
function bbp_forum_query_topic_ids( $forum_id ) {
$topic_ids = bbp_get_public_child_ids( $forum_id, bbp_get_topic_post_type() );
return apply_filters( 'bbp_forum_query_topic_ids', $topic_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.