Warning: This method has been deprecated. Use invp_get_the_price() instead.

Inventory_Presser_Vehicle::price( string $zero_string = '' )

price


Description Description

Returns the price as a dollar amount except when it is zero. Returns the $zero_string when the price is zero.


Top ↑

Parameters Parameters

$zero_string

(string) (Optional) The text to display when the price is zero

Default value: ''


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class-vehicle.php

		function price( $zero_string = '' )
		{
			_doing_it_wrong(
				__FUNCTION__,
				sprintf(
					__( '%s was deprecated in version 12.0.0. Use %s instead.', 'inventory-presser' ),
					'<code>Inventory_Presser_Vehicle->price()</code>',
					'<code>invp_get_the_price()</code>'
				),
				'12.0.0'
			);
			return invp_get_the_price( $zero_string. $this->post_ID );
		}


Top ↑

Changelog Changelog

Changelog
Version Description
12.0.0 Introduced.