Tribe__Tickets__JSON_LD__Order::get_price_currency( $ticket )
Return the price currency used on the Ticket
Contents
Parameters
- $ticket
-
(Required)
Return
(mixed)
Source
File: src/Tribe/JSON_LD/Order.php
public function get_price_currency( $ticket ) {
$currency = tribe_get_option( 'ticket-commerce-currency-code', 'USD' );
if ( class_exists( $ticket->provider_class ) ) {
$instance = call_user_func( array( $ticket->provider_class, 'get_instance' ) ) ;
$currency = $instance->get_currency();
}
return $currency;
}
Changelog
| Version | Description |
|---|---|
| 4.7.1 | Introduced. |