Skip to content
Fulvio Notarstefano edited this page Jun 19, 2015 · 4 revisions

WP Currencies comes with some Ajax functionality too.

get_currencies_json()

Outputs a json object with currencies codes and currency data such as currency name in English and corresponding symbol. This function's output will be the response to Ajax requests to 'get_currencies'.

get_exchange_rates_json( $currency_code = 'USD' )

This is a helper function that outputs a json object with each currency code and their corresponding rate to US dollar. This function's output will be the response to Ajax requests to 'get_exchange_rates'.

Clone this wiki locally