WooCommerce Code Reference

Price
in package

Price class

Tags
since

x.x.x

Table of Contents

$currency  : string
The currency of the price.
$value  : string
The price.
__construct()  : mixed
Price constructor.
get_currency()  : string
Get the currency of the price.
get_value()  : string
Get value of the price.

Properties

Methods

__construct()

Price constructor.

public __construct(string $value, string $currency) : mixed
Parameters
$value : string

The value of the price.

$currency : string

The currency of the price.

Return values
mixed