ActionScheduler_Abstract_ListTable::get_request_orderby()
Return the sortable column specified for this request to order the results by, if any.
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_orderby();
ActionScheduler_Abstract_ListTable::get_request_orderby() ActionScheduler Abstract ListTable::get request orderby code WC 9.4.2
protected function get_request_orderby() { $valid_sortable_columns = array_values( $this->sort_by ); if ( ! empty( $_GET['orderby'] ) && in_array( $_GET['orderby'], $valid_sortable_columns, true ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended $orderby = sanitize_text_field( wp_unslash( $_GET['orderby'] ) ); //phpcs:ignore WordPress.Security.NonceVerification.Recommended } else { $orderby = $valid_sortable_columns[0]; } return $orderby; }