Returns a clean label for the primary (Name) column’s row header aria-label.
Description
Provides screen readers with just the term name as the row header name, preventing them from computing the name from the full cell content.
Parameters
$termWP_Termrequired- Term object.
Source
protected function get_primary_column_aria_label( $term ) {
// Term names are already sanitized via `sanitize_term()` on creation and update.
return $term->name;
}
Changelog
| Version | Description |
|---|---|
| 7.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.