invp_get_the_payment( $post_ID = null )
Source Source
File: includes/template-tags.php
function invp_get_the_payment( $post_ID = null ) { if( empty( $post_ID ) ) { $post_ID = get_the_ID(); } if ( invp_is_sold( $post_ID ) ) { return ''; } $payment = INVP::get_meta( 'payment', $post_ID ); if( empty( $payment ) ) { return ''; } return '$' . number_format( $payment, 0, '.', ',' ); }
Expand full source code Collapse full source code View on Github