ActionScheduler_Abstract_ListTable::get_request_order()protectedWC 1.0

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() code WC 8.6.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;
}