ActionScheduler_Abstract_ListTable::get_request_order()
Return the sortable column order specified for this request.
Метод класса: ActionScheduler_Abstract_ListTable{}
Хуков нет.
Возвращает
Строку
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_request_order();
Код ActionScheduler_Abstract_ListTable::get_request_order() ActionScheduler Abstract ListTable::get request order WC 9.7.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; }