WooCommerce Add Currency Generator

Home » WordPress Generators » WooCommerce Add Currency Generator
E.g. USD
E.g. $
E.g. US Dollar
                    // Add custom currency.
add_filter( 'woocommerce_currencies', 'wpturbo_add_my_custom_currency' );
function wpturbo_add_my_custom_currency( $currencies ) {
	return $currencies;
}

// Add custom currency symbol.
add_filter('woocommerce_currency_symbol', 'wpturbo_add_my_custom_currency_symbol', 10, 2);
function wpturbo_add_my_custom_currency_symbol( $currency_symbol, $currency ) {
	switch( $currency ) {
	}
	return $currency_symbol;
}