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

invp_get_the_price


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

$zero_string

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

Default value: null

$post_ID

(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

(string)


Top ↑

Source Source

File: includes/template-tags.php