Created
March 26, 2018 07:05
-
-
Save Steeru/266e226dd1f86e2722a013e2e9a46a82 to your computer and use it in GitHub Desktop.
This file contains 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
function wp_travel_child_customize_currency_symbol( $currency_symbols ) { | |
if ( is_array( $currency_symbols ) ) { | |
foreach ( $currency_symbols as $code => $text ) { | |
if ( 'USD' == $code ) { | |
$currency_symbols[$code] = 'USD$'; | |
} | |
} | |
} | |
return $currency_symbols; | |
} | |
add_filter('wp_travel_currency_symbols','wp_travel_child_customize_currency_symbol'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment