bp_core_avatar_alt

  • apply_filters( 'bp_core_avatar_alt', $item_name, $item_id, $object ) )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-avatars.php :: Trac Source Line: 157
      	$item_name = '';
      
      	if ( 'user' == $object )
      		$item_name = bp_core_get_user_displayname( $item_id );
      	elseif ( 'group' == $object )
      		$item_name = bp_get_group_name( new BP_Groups_Group( $item_id ) );
      	elseif ( 'blog' == $object )
      		$item_name = get_blog_option( $item_id, 'blogname' );
      
      	$alt = sprintf( $alt, apply_filters( 'bp_core_avatar_alt', $item_name, $item_id, $object ) );
      
      	// Set title tag
      	if ( $title )
      		$title = " title='" . esc_attr( apply_filters( 'bp_core_avatar_title', $title, $item_id, $object ) ) . "'";
      	elseif ( $item_name )
      		$title = " title='" . esc_attr( apply_filters( 'bp_core_avatar_title', $item_name, $item_id, $object ) ) . "'";
      
      	// Set CSS ID if passed
      	if ( !empty( $css_id ) )
      		$css_id = " id='{$css_id}'";
      

Comments are closed.