WordPress at Your Fingertips
function is not described

WP_List_Table::get_sortable_columns() protected WP 3.1.0

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.

{} It's a method of the class: WP_List_Table{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_sortable_columns();

Changelog

Since 3.1.0 Introduced.

Code of WP_List_Table::get_sortable_columns() WP 5.8.1

protected function get_sortable_columns() {
	return array();
}