Tribe__Tickets__Commerce__Currency::get_currency_symbol_position( int|null $post_id = null )
Get and allow filtering of the currency symbol position
Contents
Parameters
- $post_id
-
(int|null) (Optional)
Default value: null
Return
(string)
Source
File: src/Tribe/Commerce/Currency.php
public function get_currency_symbol_position( $post_id = null ) {
if ( ! isset( $this->currency_code_options_map[ $this->currency_code ]['position'] ) ) {
$currency_position = 'prefix';
} else {
$currency_position = $this->currency_code_options_map[ $this->currency_code ]['position'];
}
return apply_filters( 'tribe_commerce_currency_symbol_position', $currency_position, $post_id );
}
Changelog
| Version | Description |
|---|---|
| 4.7 | |
| 4.10.8 | Introduced. |