WP_List_Table::get_sortable_columns() – Get a list of sortable columns. The format is: ‘internal-name’ => ‘orderby’ or ‘internal-name’ => array( ‘orderby’, true )
You appear to be a bot. Output may be restricted
Description
Gets a list of sortable columns.
The format is:
- `'internal-name' => 'orderby'`
- `'internal-name' => array( 'orderby', 'asc' )` – The second element sets the initial sorting order.
- `'internal-name' => array( 'orderby', true )` – The second element makes the initial order descending.
Usage
$array = WP_List_Table::get_sortable_columns();
Parameters
Returns
array
Source
File name: wordpress/wp-admin/includes/class-wp-list-table.php
Lines:
1 to 3 of 3
protected function get_sortable_columns() { return array(); }