WP_MS_Users_List_Table::get_primary_column_aria_label( WP_User $user ): string

In this article

Returns a clean label for the primary (Username) column’s row header aria-label.

Description

Provides screen readers with just the user login as the row header name, preventing them from computing the name from the full cell content.

Parameters

$userWP_Userrequired
The current WP_User object.

Return

string The user login.

Source

protected function get_primary_column_aria_label( $user ) {
	return $user->user_login;
}

Changelog

VersionDescription
7.1.0Introduced.

User Contributed Notes

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