WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin\API\Reports

DataStore::normalize_order_by() protected WC 1.0

Normalizes order_by clause to match to SQL query.

{} It's a method of the class: DataStore{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->normalize_order_by( $order_by );
$order_by(string) (required)
Order by option requested by user.

Code of DataStore::normalize_order_by() WC 6.1.0

protected function normalize_order_by( $order_by ) {
	if ( 'date' === $order_by ) {
		return 'time_interval';
	}

	return $order_by;
}