ActionScheduler_Abstract_ListTable::get_request_order()
Return the sortable column order specified for this request.
Method of the class: ActionScheduler_Abstract_ListTable{}
No Hooks.
Return
String
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_request_order();
ActionScheduler_Abstract_ListTable::get_request_order() ActionScheduler Abstract ListTable::get request order code WC 9.3.1
protected function get_request_order() { if ( ! empty( $_GET['order'] ) && 'desc' === strtolower( sanitize_text_field( wp_unslash( $_GET['order'] ) ) ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended $order = 'DESC'; } else { $order = 'ASC'; } return $order; }