Last active
October 28, 2015 07:51
-
-
Save farookibrahim/8feef19300a8b39086ed to your computer and use it in GitHub Desktop.
Add Currency Symbol for Give Plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'give_currencies', 'give_custom_currencies' ); | |
| function give_custom_currencies( $currencies ) { | |
| $currencies['NGN'] = __( 'Nigerian Naira (₦)', 'bethlehem' ); | |
| return $currencies; | |
| } | |
| add_filter( 'give_currency_symbol', 'give_custom_currency_symbol', 10, 2 ); | |
| function give_custom_currency_symbol( $symbol, $currency ) { | |
| if( $currency == 'NGN' ) { | |
| $symbol = '₦'; | |
| } | |
| return $symbol; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment