Skip to content

Instantly share code, notes, and snippets.

@Steeru
Created March 26, 2018 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Steeru/266e226dd1f86e2722a013e2e9a46a82 to your computer and use it in GitHub Desktop.
Save Steeru/266e226dd1f86e2722a013e2e9a46a82 to your computer and use it in GitHub Desktop.
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