bbp_get_reply_author

  • apply_filters( 'bbp_get_reply_author', $author, $reply_id )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-template.php :: Trac Source Line: 804
      	 */
      	function bbp_get_reply_author( $reply_id = 0 ) {
      		$reply_id = bbp_get_reply_id( $reply_id );
      
      		if ( !bbp_is_reply_anonymous( $reply_id ) )
      			$author = get_the_author_meta( 'display_name', bbp_get_reply_author_id( $reply_id ) );
      		else
      			$author = get_post_meta( $reply_id, '_bbp_anonymous_name', true );
      
      		return apply_filters( 'bbp_get_reply_author', $author, $reply_id );
      	}
      
      /**
       * Output the author ID of the reply
       *
       * @since bbPress (r2667)
       *
       * @param int $reply_id Optional. Reply id
       * @uses bbp_get_reply_author_id() To get the reply author id
       */
      

Comments are closed.