invp_get_the_price( string $zero_string = null, int|null $post_ID = null )


Description Description

Template tag. Returns the vehicle's price.

Returns the price as a dollar amount with a dollar sign except when it is zero or the vehicle is sold. Returns the $zero_string when the price is zero. Returns "SOLD!" when the vehicle is sold.

Top ↑

Parameters Parameters


(string) (Optional) The text to display when the price is zero

Default value: null


(int|null) (Optional) The post ID of a vehicle. Must be passed when using this method outside the loop.

Default value: null

Top ↑

Return Return


Top ↑

Source Source

File: includes/template-tags.php