The format is: <ul> <li>'internal-name' => 'orderby'</li> <li>'internal-name' => array( 'orderby', bool, 'abbr', 'orderby-text', 'initially-sorted-column-order' ) -</li> <li>'internal-name' => array( 'orderby', 'asc' ) - The second element sets the initial sorting order.</li> <li>'internal-name' => array( 'orderby', true ) - The second element makes the initial order descending.</li> </ul> In the second format, passing true as second parameter will make the initial sorting order be descending. Following parameters add a short column name to be used as 'abbr' attribute, a translatable string for the current sorting, and the initial order for the initial sorted column, 'asc' or 'desc' (default: false).
Return
array<string,
array<int, string|bool>|string> An associative array of sortable columns.
Signature, return type and hooks compared across 5 parsed releases.
7.0.4
Return type changed from array to array<string,.verified against source
6.3.0
Added 'abbr', 'orderby-text' and 'initially-sorted-column-order'.from the docblock
3.1.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-admin/includes/class-wp-list-table.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.