bbp_get_current_user_avatar

  • apply_filters( 'bbp_get_current_user_avatar', get_avatar( $user, $size ), $size )

    Source Reference:

    • Component: bbPress :: bbp-user
      File: /bbp-includes/bbp-user-template.php :: Trac Source Line: 187
      	 * @uses apply_filters() Calls 'bbp_get_current_user_avatar' with the
      	 *                        avatar and size
      	 * @return string Current user avatar
      	 */
      	function bbp_get_current_user_avatar( $size = 40 ) {
      
      		if ( !$user = bbp_get_current_user_id() )
      			$user = bbp_get_current_anonymous_user_data( 'email' );
      
      		return apply_filters( 'bbp_get_current_user_avatar', get_avatar( $user, $size ), $size );
      	}
      
      /**
       * Output link to the profile page of a user
       *
       * @since bbPress (r2688)
       *
       * @param int $user_id Optional. User id
       * @uses bbp_get_user_profile_link() To get user profile link
       */
      

Comments are closed.