This function has been deprecated. bbPress (r5119) instead.
bbp_get_topic_author( int $topic_id )
Deprecated. Use bbp_get_topic_author_display_name() instead.
Description
Return the author of the topic
Parameters
- $topic_id
-
(Optional) Topic id
Return
(string) Author of topic
Source
File: bp-forums/topics/template.php
1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 | function bbp_get_topic_author( $topic_id = 0 ) { $topic_id = bbp_get_topic_id( $topic_id ); if ( !bbp_is_topic_anonymous( $topic_id ) ) { $author = get_the_author_meta( 'display_name' , bbp_get_topic_author_id( $topic_id ) ); } else { $author = get_post_meta( $topic_id , '_bbp_anonymous_name' , true ); } return apply_filters( 'bbp_get_topic_author' , $author , $topic_id ); } |
Changelog
Version | Description |
---|---|
bbPress (r5119) | bbPress (r5119) |
bbPress (r2590) | 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.