BP_Members_Invitations_List_Table::column_username( BP_Invitation $invite = null )

The inviter.


Parameters Parameters

$invite

(BP_Invitation) (Optional) BP_Invitation object.

Default value: null


Source Source

File: bp-members/classes/class-bp-members-invitations-list-table.php

	public function column_username( $invite = null ) {
		$avatar  = get_avatar( $invite->inviter_id, 32 );
		$inviter = get_user_by( 'id', $invite->inviter_id );
		if ( ! $inviter ) {
			return;
		}

		$user_link = bp_core_get_user_domain( $invite->inviter_id );

		printf( '%1$s <strong><a href="%2$s" class="edit">%3$s</a></strong><br/>', $avatar, esc_url( $user_link ), esc_html( $inviter->user_login ) );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
8.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.