Inventory_Presser_Plugin::change_order_by_for_odometer( string $orderby, object $query )

Removes commas from the meta value used in the ORDER BY of the query so that odometer values can be sorted as numbers instead of strings.


Parameters Parameters

$orderby

(Required) The ORDER BY clause of a database query.

$query

(Required) An instance of the WP_Query class.


Top ↑

Return Return

(string) The changed ORDER BY clause


Top ↑

Source Source

File: inventory-presser.php