説明
usces_the_itemPriceCr_taxincluded() で出力する、通貨記号付きの税込金額(商品売価+消費税額)を書き換えます。
使い方
add_filter( 'usces_filter_the_item_price_cr_taxincluded', 'my_filter_the_item_price_cr_taxincluded', 10, 2, 3 ); function my_filter_the_item_price_cr_taxincluded( $price, $price_taxincluded, $out ) { //処理 return $price; }
パラメータ
- $price
- (HTML文字列)通貨記号付きの税込金額(商品売価+消費税額)
- $price_taxincluded
- (数値)usces_the_itemPrice_taxincluded() の戻り値
- $out
- (文字列)戻り値の出力を echo するか return するかを決める。初期値は空文字(echo)。
- ‘return’:return する
- ”(空文字)もしくは未設定:echo する(初期値)
用例
ソースファイル
usc-e-shop/functions/template_func.php
関連資料
- usces_the_itemPriceCr_taxincluded() ・・・ 商品単価(売価)に消費税額を加算した金額を、通貨記号付きで表示