WP_List_Table::get_primary_column_aria_label │ protected │ WP 7.1.0

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.

Method of the class: WP_List_Table{}

No Hooks.

Returns

string. The aria-label value, or an empty string.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_primary_column_aria_label( $item );
$item(object|array) (required)
The current item.

Changelog

Since 7.1.0 Introduced.

WP_List_Table::get_primary_column_aria_label() code WP 7.1.2

protected function get_primary_column_aria_label( $item ) {
	return '';
}