WOOCS - WooCommerce Currency Switcher

How to use WOOCS API

Sometimes site admins wants to wide 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)!