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.
Method of the class: ActionScheduler_Abstract_ListTable{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->get_items_query_order();
ActionScheduler_Abstract_ListTable::get_items_query_order() ActionScheduler Abstract ListTable::get items query order code WC 10.8.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}";
}