Home / Admin / Adjust Currency Symbols | Display Eventbrite Events
Duplicate Snippet

Embed Snippet on Your Site

Adjust Currency Symbols | Display Eventbrite Events

The Display Eventbrite plugin has a table that converts currency code to symbols. Sometime a user may require a different symbol e.g. to remove confusion between $ types. The following snippet is an example showing CAD changing the symbol to CAD$.

You can adjust this code as you feel fit and can add the PHP to your functions.php.

(Note this code snippet applies for "Display Eventbrite Events Plugin" available here: https://fullworksplugins.com/products/widget-for-eventbrite/ )

Code Preview
php
<?php
add_filter('wfea_currency_symbols', function ($currency_symbols) {
	$currency_symbols['CAD'] = 'CAD$';
	return $currency_symbols;
}
);

Comments

Add a Comment