ActionScheduler_Abstract_ListTable::get_items_query_order()protectedWC 1.0

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() WC 8.9.3

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}";