bbp_get_topic_author

  • apply_filters( 'bbp_get_topic_author', $author, $topic_id )

    Source Reference:

    • Component: bbPress :: bbp-topic
      File: /bbp-includes/bbp-topic-template.php :: Trac Source Line: 1059
      	 */
      	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 );
      	}
      
      /**
       * Output the author ID of the topic
       *
       * @since bbPress (r2590)
       *
       * @param int $topic_id Optional. Topic id
       * @uses bbp_get_topic_author_id() To get the topic author id
       */
      

Comments are closed.