ActionScheduler_Abstract_ListTable::get_items_query_order
Prepares the ORDER BY sql statement. It uses $this->sort_by to know which columns are sortable. This requests validates the orderby $_GET parameter is a valid column and sortable. It will also use order (ASC|DESC) using DESC by default.
Метод класса: ActionScheduler_Abstract_ListTable{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_items_query_order();
Код ActionScheduler_Abstract_ListTable::get_items_query_order() ActionScheduler Abstract ListTable::get items query order WC 9.9.4
protected function get_items_query_order() { if ( empty( $this->sort_by ) ) { return ''; } $orderby = esc_sql( $this->get_request_orderby() ); $order = esc_sql( $this->get_request_order() ); return "ORDER BY {$orderby} {$order}"; }