bp_get_blog_avatar

  • apply_filters( 'bp_get_blog_avatar', $avatar, $blogs_template->blog->blog_id, array( 'item_id' => $blogs_template->blog->admin_user_id, 'type' => $type, 'alt' => $alt, 'width' => $width, 'height' => $height, 'class' => $class

    Source Reference:

    • Component: BuddyPress :: bp-blogs
      File: /bp-blogs/bp-blogs-template.php :: Trac Source Line: 299
      		 * In future BuddyPress versions you will be able to set the avatar for a blog.
      		 * Right now you can use a filter with the ID of the blog to change it if you wish.
      		 * By default it will return the avatar for the primary blog admin.
      		 *
      		 * This filter is deprecated as of BuddyPress 1.5 and may be removed in a future version.
      		 * Use the 'bp_get_blog_avatar' filter instead.
      		 */
      		$avatar = apply_filters( 'bp_get_blog_avatar_' . $blogs_template->blog->blog_id, bp_core_fetch_avatar( array( 'item_id' => $blogs_template->blog->admin_user_id, 'type' => $type, 'alt' => $alt, 'width' => $width, 'height' => $height, 'class' => $class, 'email' => $blogs_template->blog->admin_user_email ) ) );
      
      		return apply_filters( 'bp_get_blog_avatar', $avatar, $blogs_template->blog->blog_id, array( 'item_id' => $blogs_template->blog->admin_user_id, 'type' => $type, 'alt' => $alt, 'width' => $width, 'height' => $height, 'class' => $class, 'email' => $blogs_template->blog->admin_user_email ) );
      	}
      
      function bp_blog_permalink() {
      	echo bp_get_blog_permalink();
      }
      	function bp_get_blog_permalink() {
      		global $blogs_template;
      
      		if ( empty( $blogs_template->blog->domain ) )
      			$permalink = bp_get_root_domain() . $blogs_template->blog->path;
      

Comments are closed.