WP_MS_Users_List_Table::get_primary_column_aria_label │ protected │ WP 7.1.0

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

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

Метод класса: WP_MS_Users_List_Table{}

Хуков нет.

Возвращает

string. The user login.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_primary_column_aria_label( $user );
$user(WP_User) (обязательный)
The current WP_User object.

Список изменений

С версии 7.1.0 Введена.

Код WP_MS_Users_List_Table::get_primary_column_aria_label() WP 7.1.5

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