Returns a clean label for the primary (Name) column’s row header aria-label.
Description
Provides screen readers with just the link name as the row header name, preventing them from computing the name from the full cell content.
Parameters
$linkobjectrequired- The current link object.
Source
protected function get_primary_column_aria_label( $link ) {
$link_name = html_entity_decode( $link->link_name, ENT_QUOTES, get_bloginfo( 'charset' ) );
$link_name = wp_strip_all_tags( $link_name );
return $link_name;
}
Changelog
| Version | Description |
|---|---|
| 7.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.