WP_MS_Users_List_Table::get_primary_column_aria_label
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.
Method of the class: WP_MS_Users_List_Table{}
No Hooks.
Returns
string. The user login.
Usage
// protected - for code of main (parent) or child class $result = $this->get_primary_column_aria_label( $user );
- $user(WP_User) (required)
- The current WP_User object.
Changelog
| Since 7.1.0 | Introduced. |
WP_MS_Users_List_Table::get_primary_column_aria_label() WP MS Users List Table::get primary column aria label code WP 7.1.2
protected function get_primary_column_aria_label( $user ) {
return $user->user_login;
}