bbp_get_reply_author_display_name

  • apply_filters( 'bbp_get_reply_author_display_name', esc_attr( $author_name ), $reply_id )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-template.php :: Trac Source Line: 873
      	function bbp_get_reply_author_display_name( $reply_id = 0 ) {
      		$reply_id = bbp_get_reply_id( $reply_id );
      
      		// Check for anonymous user
      		if ( !bbp_is_reply_anonymous( $reply_id ) )
      			$author_name = get_the_author_meta( 'display_name', bbp_get_reply_author_id( $reply_id ) );
      		else
      			$author_name = get_post_meta( $reply_id, '_bbp_anonymous_name', true );
      
      		return apply_filters( 'bbp_get_reply_author_display_name', esc_attr( $author_name ), $reply_id );
      	}
      
      /**
       * Output the author avatar of the reply
       *
       * @since bbPress (r2667)
       *
       * @param int $reply_id Optional. Reply id
       * @param int $size Optional. Size of the avatar. Defaults to 40
       * @uses bbp_get_reply_author_avatar() To get the reply author id
      

Comments are closed.