Currency::get_currency_code_options()
Creates the array for a currency drop-down using only code & name.
Return
(TECTicketsCommerceUtilsarray<string,) string>
Source
File: src/Tickets/Commerce/Utils/Currency.php
public function get_currency_code_options() {
$currency_map = $this->get_default_currency_map();
$options = array_combine(
array_keys( $currency_map ),
wp_list_pluck( $currency_map, 'name' )
);
/**
* Filters the currency code options shown to the user in the TC settings.
*
* @since 5.3.2
*
* @param array<string, string> $options
*/
return apply_filters( 'tec_tickets_commerce_currency_code_options', $options );
}
Changelog
| Version | Description |
|---|---|
| 5.3.2 | Introduced. |