WP_Terms_List_Table::get_primary_column_aria_label
Returns a clean label for the primary (Name) column's row header aria-label.
Provides screen readers with just the term name as the row header name, preventing them from computing the name from the full cell content.
Method of the class: WP_Terms_List_Table{}
No Hooks.
Returns
string. The term name.
Usage
// protected - for code of main (parent) or child class $result = $this->get_primary_column_aria_label( $term );
- $term(WP_Term) (required)
- Term object.
Changelog
| Since 7.1.0 | Introduced. |
WP_Terms_List_Table::get_primary_column_aria_label() WP Terms List Table::get primary column aria label code WP 7.1
protected function get_primary_column_aria_label( $term ) {
// Term names are already sanitized via `sanitize_term()` on creation and update.
return $term->name;
}