bbp_get_forum_type( int $forum_id )
Return the type of forum (category/forum/etc.
Description
..)
Parameters
- $forum_id
-
(Optional) Forum id
Return
(bool) Whether the forum is a category or not
Source
File: bp-forums/forums/template.php
1676 1677 1678 1679 1680 1681 1682 1683 | function bbp_get_forum_type( $forum_id = 0 ) { $forum_id = bbp_get_forum_id( $forum_id ); $retval = get_post_meta( $forum_id , '_bbp_forum_type' , true ); if ( empty ( $retval ) ) $retval = 'forum' ; return apply_filters( 'bbp_get_forum_type' , $retval , $forum_id ); } |
Changelog
Version | Description |
---|---|
bbPress (r3563) | 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.