invp_get_raw_book_value( mixed $post_ID = null )

invp_get_raw_book_value


Description Description

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


Top ↑

Parameters Parameters

$post_ID

(mixed) (Optional)

Default value: null


Top ↑

Return Return

(double)


Top ↑

Source Source

File: includes/template-tags.php

function invp_get_raw_book_value( $post_ID = null )
{
	if( empty( $post_ID ) )
	{
		$post_ID = get_the_ID();
	}
	$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 );
}