invp_get_the_down_payment( int|null $post_ID = null )
invp_get_the_down_payment
Parameters
- $post_ID
-
(int|null) (Optional) The post ID of a vehicle. Must be passed when using this method outside the loop.
Default value: null
Return
(string)
Source
File: includes/template-tags.php
function invp_get_the_down_payment( $post_ID = null ) { if ( empty( $post_ID ) ) { $post_ID = get_the_ID(); } $down_payment = INVP::get_meta( 'down_payment', $post_ID ); if ( empty( $down_payment ) ) { return ''; } return '$' . number_format( $down_payment, 0, '.', ',' ); }
Expand full source code Collapse full source code View on Github