WordPress at Your Fingertips
function is not described

WP_Users_List_Table::get_sortable_columns() protected WP 3.1.0

Get a list of sortable columns for the list table.

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

No Hooks.

Return

Array. Array of sortable columns.

Usage

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

Changelog

Since 3.1.0 Introduced.

Code of WP_Users_List_Table::get_sortable_columns() WP 5.8.2

protected function get_sortable_columns() {
	$c = array(
		'username' => 'login',
		'email'    => 'email',
	);

	return $c;
}