WP_List_Table::get_primary_column_aria_label
Returns a clean, human-readable label for the primary column's row header.
Used as the aria-label attribute value on the <th scope="row"> element, giving screen readers a concise cell name instead of computing it from the full cell content (which may include row action links, excerpts, etc.).
Subclasses should override this method to return the item's primary identifier (e.g. post title, plugin name, username). Return an empty string to omit the attribute.
Метод класса: WP_List_Table{}
Хуков нет.
Возвращает
string. The aria-label value, or an empty string.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_primary_column_aria_label( $item );
- $item(объект|массив) (обязательный)
- The current item.
Список изменений
| С версии 7.1.0 | Введена. |
Код WP_List_Table::get_primary_column_aria_label() WP List Table::get primary column aria label WP 7.1.2
protected function get_primary_column_aria_label( $item ) {
return '';
}