Shortcode: [wpsight_currency_converter]


This shortcode display the currency dropdown for example in a sidebar text widget (see demo).

Please notice! This shortcode will only be available when the WPCasa Currency Converter add-on is active.

Usage

[wpsight_currency_converter]

Parameters

class
Additional CSS class for the select dropdown. Defaults to currency-select-[$counter].

id
HTML ID for the select dropdown. Defaults to currency-select-[$counter].

currencies
Comma-separated list of currency theree-letter codes. Defaults to eur,usd,gbp,jpy.

selected
The pre-selected currency. Defaults to wpsight_get_option( 'currency' ) (currency in settings).

Example

[wpsight_currency_converter currencies="eur,usd,gbp" id="my-custom-select"]

Source File

/wpcasa-currency-converter/wpcasa-currency-converter.php

Was this article helpful? Yes · No