Created
July 26, 2016 10:41
-
-
Save iMazed/60b41dc6dc3713483853590013e5d0f5 to your computer and use it in GitHub Desktop.
Add suffix to WooCommerce product price
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
add_filter( 'woocommerce_get_price_html', 'custom_price_suffix', 100, 2 ); | |
function custom_price_suffix( $price, $product ){ | |
$price = $price . ' +VAT'; | |
return apply_filters( 'woocommerce_get_price', $price ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment