Last active
September 6, 2017 18:11
-
-
Save rynaldos-zz/ffe5120c7343c2bdbad3d4ac8a600dd2 to your computer and use it in GitHub Desktop.
[WooCommerce 3.0] Show currency converter on shop / archive page
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( '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