WP_Users_List_Table::get_sortable_columns
Gets a list of sortable columns for the list table.
Метод класса: WP_Users_List_Table{}
Хуков нет.
Возвращает
Массив. Array of sortable columns.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_sortable_columns();
Список изменений
| С версии 3.1.0 | Введена. |
Код WP_Users_List_Table::get_sortable_columns() WP Users List Table::get sortable columns WP 6.9.1
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;
}