Skip to content

Instantly share code, notes, and snippets.

@iMazed
Created July 26, 2016 10:41
Show Gist options
  • Save iMazed/60b41dc6dc3713483853590013e5d0f5 to your computer and use it in GitHub Desktop.
Save iMazed/60b41dc6dc3713483853590013e5d0f5 to your computer and use it in GitHub Desktop.
Add suffix to WooCommerce product price
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