WP_Users_List_Table::get_sortable_columns()protectedWP 3.1.0

Gets a list of sortable columns for the list table.

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.

WP_Users_List_Table::get_sortable_columns() code WP 6.4.3

protected function get_sortable_columns() {
	$columns = array(
		'username' => array( 'login', false, __( 'Username' ), __( 'Table ordered by Username.' ), 'asc' ),
		'email'    => array( 'email', false, __( 'E-mail' ), __( 'Table ordered by E-mail.' ) ),
	);

	return $columns;
}