Tribe__Tickets__Commerce__Currency::generate_currency_code_options()
Creates the array for a currency drop-down using only code & name
Return
(array)
Source
File: src/Tribe/Commerce/Currency.php
public function generate_currency_code_options() {
$options = array_combine(
array_keys( $this->currency_code_options_map ),
wp_list_pluck( $this->currency_code_options_map, 'name' )
);
/**
* Filters the currency code options shown to the user in the settings.
*
* @since 4.7
*
* @param array $options
*/
return apply_filters( 'tribe_tickets_commerce_currency_code_options', $options );
}
Changelog
| Version | Description |
|---|---|
| 4.7 | Introduced. |