mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-30 11:42:22 +08:00
6 lines
321 B
Text
6 lines
321 B
Text
add_filter( 'woocommerce_get_price_suffix', 'wc_add_price_suffix_price_inc_tax', 99, 4 );
|
|
|
|
function wc_add_price_suffix_price_inc_tax( $suffix, $product, $price, $qty ){
|
|
$suffix = ' <small>ex. TAX</small> - ' . wc_price( wc_get_price_including_tax( $product ) ) . ' <small>inc. TAX</small>';
|
|
return $suffix;
|
|
}
|