Add another Currency

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

  • Author
    Posts
  • #3943
    Alex
    Spectator

    Good day!
    How can I add another currency, which not present in EPL Setting page?
    For example, I need to add Ukrainian Hryvnia with code ‘₴’.
    Thx!

    #3944
    Alex
    Spectator

    Ups… code convet to symbol.
    The are code is “&_#_8372;”

    #4010
    Alex
    Spectator

    OK I found solution on WordPress_org “https://wordpress.org/support/topic/currency-22”
    This code should be placed in a child theme functions.php.

    
    // Add currency 'Ukrainian Hryvnia' with code '& # 8372;'
    function rec_extra_edd_currencies( $currencies ) {
    	$currencies['₴'] = __('Ukrainian hryvnia', 'my_domain');
    
    	return $currencies;
    }
    add_filter('epl_get_currencies', 'rec_extra_edd_currencies');
    

    Thx!

    #4022
    Merv Barrett
    Keymaster

    Great Alex, Make sure you used the HTML code for the currency instead. I’m sure you have just the forum has converted it to the symbol.

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Priority Support’ is closed to new topics and replies.