bbp_get_topic_author_avatar

  • apply_filters( 'bbp_get_topic_author_avatar', $author_avatar, $topic_id, $size )

    Source Reference:

    • Component: bbPress :: bbp-topic
      File: /bbp-includes/bbp-topic-template.php :: Trac Source Line: 1173
      		if ( $topic_id = bbp_get_topic_id( $topic_id ) ) {
      
      			// Check for anonymous user
      			if ( !bbp_is_topic_anonymous( $topic_id ) )
      				$author_avatar = get_avatar( bbp_get_topic_author_id( $topic_id ), $size );
      			else
      				$author_avatar = get_avatar( get_post_meta( $topic_id, '_bbp_anonymous_email', true ), $size );
      		}
      
      		return apply_filters( 'bbp_get_topic_author_avatar', $author_avatar, $topic_id, $size );
      	}
      
      /**
       * Output the author link of the topic
       *
       * @since bbPress (r2717)
       *
       * @param mixed|int $args If it is an integer, it is used as topic_id. Optional.
       * @uses bbp_get_topic_author_link() To get the topic author link
       */
      

Comments are closed.