FOX - Currency Switcher for WooCommerce

How to Use the FOX Currency Switcher API

Everything the settings screen does can be done from code. The currency switcher API is shortcodes, actions, filters and the global $WOOCS object, all documented in the codex.

Sometimes site admins wants to extend the logic of currencies behavior on their site, or simply get any data using WOOCS functionality. In such way WOOCS API can be used for it as it have heap of tools which can help you with idea related to the site behavior/logic. Next code is just a primitive example which shows how to get currency data:
add_shortcode('my_woocs_sign', 'my_woocs_sign');
function my_woocs_sign(){
	global $WOOCS;
	$currencies = $WOOCS->get_currencies();
	return $currencies[$WOOCS->current_currency]['symbol'];
}
Current code example returns sign of the current currency, and this code should be applied in the functions.php file of current wp theme. Look please WOOCS functions and WOOCS filters to understand how to realize your idea(s)!