Tribe__Tickets__Commerce__Currency::get_currency_symbol( int|null $post_id = null, bool $decode = false )
Get and allow filtering of the currency symbol.
Contents
Parameters
- $post_id
-
(int|null) (Optional)
Default value: null
- $decode
-
(bool) (Optional) Whether to HTML decode the currency symbol before returning or not.
Default value: false
Return
(string)
Source
File: src/Tribe/Commerce/Currency.php
public function get_currency_symbol( $post_id = null, $decode = false ) {
$symbol = $this->currency_code_options_map[ $this->currency_code ]['symbol'];
$symbol = apply_filters( 'tribe_commerce_currency_symbol', $symbol, $post_id );
return $decode ? html_entity_decode( $symbol ) : $symbol;
}
Changelog
| Version | Description |
|---|---|
| 4.7 | Introduced. |