View difference between Paste ID: cRqwTVXD and FNHArUdy
SHOW: | | - or go back to the newest paste.
1
<?php
2
/*
3
This function will add South African Rand to the list of available currencies for your events.
4
Edit accordingly for other currencies.
5
6
For information on how to paste/implement this snippet, see here - http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/
7
*/
8-
function my_em_add_currencies_ZAR($currencies){
8+
function my_em_add_currencies($currencies){
9
	$currencies->names['ZAR'] = 'ZAR - South African Rand'; //textual representation of the currency
10
	$currencies->symbols['ZAR'] = 'ZAR'; //If the symbol requires an entity, like for € it's &euro;
11
	$currencies->true_symbols['ZAR'] = 'R'; //The actual symbol used, e.g. for Euros it's €
12
	return $currencies;
13
}
14-
add_filter('em_get_currencies','my_em_add_currencies_ZAR');
14+
add_filter('em_get_currencies','my_em_add_currencies');

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×