Value::get_currency_display()
Get the display currency.
Return
(string) The display text for this value.
Source
File: src/Tickets/Commerce/Utils/Value.php
public function get_currency_display() {
$currency_display = $this->get_currency();
if ( $this->get_decimal() == 0 ) {
$currency_display = _x( 'Free', 'No cost', 'event-tickets' );
}
/**
* Filter the currency display.
*
* @since 5.10.0
*
* @param string $currency_display The currency display.
* @param Value $value The value object.
*/
return apply_filters( 'tec_tickets_commerce_value_get_currency_display', $currency_display, $this );
}
Changelog
| Version | Description |
|---|---|
| 5.10.0 | Introduced. |