SHARE
TWEET

Indian Rupee Custom Currency

eventsmanager Aug 7th, 2019 153 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3. This function will add Indian Rupee 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_INR($currencies){
  9.     $currencies->names['INR'] = 'INR - Indian Rupee'; //textual representation of the currency
  10.     $currencies->symbols['INR'] = 'INR'; //If the symbol requires an entity, like for € it's &euro;
  11.     $currencies->true_symbols['INR'] = '₹'; //The actual symbol used, e.g. for Euros it's €
  12.     return $currencies;
  13. }
  14. add_filter('em_get_currencies','my_em_add_currencies_INR');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top