invp_get_the_odometer( string $append = '', int $post_ID = null )
Template tag. Returns the odometer formatted as a number with comma separators if it is numeric. Returns any other non-zero value without any formatting. Adds the $append value to any return value but an empty string.
Parameters Parameters
- $append
-
(Optional) A string to append after the odometer value. If the vehicle has no odometer value, then this parameter is ignored.
Default value: ''
- $post_ID
-
(Optional) The post ID of a vehicle. Must be passed when using this method outside the loop.
Default value: null
Return Return
(string)
Source Source
File: includes/template-tags.php
Expand full source code Collapse full source code View on Github