WP_Users_List_Table::get_sortable_columns(): array
Gets a list of sortable columns for the list table.
Return
array Array of sortable columns.
Source
File: wp-admin/includes/class-wp-users-list-table.php
.
View all references
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;
}
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |