invp_get_raw_book_value( int|null $post_ID = null )

Template tag. Returns the raw book value price as a number and therefore no string formatting or dollar sign.


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


Top ↑

Return Return

(double)


Top ↑

Source Source

File: includes/template-tags.php

function invp_get_raw_book_value( $post_ID = null ) {
	$raw_kbb  = INVP::get_meta( 'book_value_kbb', $post_ID );
	$raw_nada = INVP::get_meta( 'book_value_nada', $post_ID );
	return max( $raw_nada, $raw_kbb );
}