WP_List_Table::get_primary_column_aria_label( object|array $item ): string

Returns a clean, human-readable label for the primary column’s row header.

Description

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.

Parameters

$itemobject|arrayrequired
The current item.

Return

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

Source

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

Changelog

VersionDescription
7.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.