WordPress at Your Fingertips
function is not described

ActionScheduler_Abstract_ListTable::get_request_orderby() protected WC 1.0

Return the sortable column specified for this request to order the results by, if any.

{} It's a 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();

Code of ActionScheduler_Abstract_ListTable::get_request_orderby() WC 6.1.1

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;
}