bp_core_avatar_url

  • apply_filters( 'bp_core_avatar_url', $baseurl )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-avatars.php :: Trac Source Line: 727
      				if ( is_multisite() && bp_get_root_blog_id() != get_current_blog_id() )
      					$baseurl = trailingslashit( get_blog_option( bp_get_root_blog_id(), 'home' ) ) . get_blog_option( bp_get_root_blog_id(), 'upload_path' );
      			}
      		}
      
      		// Stash in $bp for later use
      		$bp->avatar->url = $baseurl;
      	}
      
      	return apply_filters( 'bp_core_avatar_url', $baseurl );
      }
      
      /**
       * Utility function for fetching an avatar dimension setting
       *
       * @package BuddyPress
       * @since 1.5
       *
       * @param str $type 'thumb' for thumbs, otherwise full
       * @param str $h_or_w 'height' for height, otherwise width
      

Comments are closed.