Warning: 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 Description

Return the author of the topic


Parameters Parameters

$topic_id

(Optional) Topic id


Top ↑

Return Return

(string) Author of topic


Top ↑

Source Source

File: includes/topics/template.php

	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 );
		}

		// Filter & return
		return apply_filters( 'bbp_get_topic_author', $author, $topic_id );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 bbPress (r5119)
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.