Skip to content

Instantly share code, notes, and snippets.

@rynaldos-zz
Last active September 6, 2017 18:11
Show Gist options
  • Save rynaldos-zz/ffe5120c7343c2bdbad3d4ac8a600dd2 to your computer and use it in GitHub Desktop.
Save rynaldos-zz/ffe5120c7343c2bdbad3d4ac8a600dd2 to your computer and use it in GitHub Desktop.
[WooCommerce 3.0] Show currency converter on shop / archive page
add_filter( 'woocommerce_get_price_html', 'wc_ninja_add_sc_price_display', 20 );
function wc_ninja_add_sc_price_display( $price ) {
echo do_shortcode( '[woocommerce_currency_converter] ' );
return $price;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment