WP_List_Table::get_sortable_columns()
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.
Метод класса: WP_List_Table{}
Хуков нет.
Возвращает
Массив
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_sortable_columns();
Список изменений
С версии 3.1.0 | Введена. |
Код WP_List_Table::get_sortable_columns() WP List Table::get sortable columns WP 6.1.1
protected function get_sortable_columns() { return array(); }