invp_get_the_msrp( int|null $post_ID = null )
invp_get_the_msrp
Parameters 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 Return
(string)
Source Source
File: includes/template-tags.php
function invp_get_the_msrp( $post_ID = null ) { $msrp = INVP::get_meta( 'msrp', $post_ID ); if ( empty( $msrp ) ) { return ''; } return INVP::currency_symbol() . number_format( $msrp, 0, '.', ',' ); }
Expand full source codeCollapse full source codeView on Github