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.
Contents
Parameters Parameters
- $orderby
-
(Required) The ORDER BY clause of a database query.
- $query
-
(Required) An instance of the WP_Query class.
Return Return
(string) The changed ORDER BY clause
Source Source
File: inventory-presser.php
Expand full source code Collapse full source code View on Github