WordPress at Your Fingertips
function is not described

ActionScheduler_Abstract_ListTable::get_items_query_order() protected WC 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.

{} It's a method of the class: ActionScheduler_Abstract_ListTable{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_items_query_order();

Code of ActionScheduler_Abstract_ListTable::get_items_query_order() WC 6.1.1

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