bbp_get_forum_author_id( int $forum_id )
Return the author ID of the forum
Description
Parameters
- $forum_id
-
(Optional) Forum id
Return
(string) Author of forum
Source
File: bp-forums/forums/template.php
1911 1912 1913 1914 1915 1916 | function bbp_get_forum_author_id( $forum_id = 0 ) { $forum_id = bbp_get_forum_id( $forum_id ); $author_id = get_post_field( 'post_author' , $forum_id ); return (int) apply_filters( 'bbp_get_forum_author_id' , (int) $author_id , $forum_id ); } |
Changelog
Version | Description |
---|---|
bbPress (r3675) | 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.