usces_filter_the_item_cprice_cr_taxincluded / フィルターフック

通貨記号付きの税込金額(商品通常価+消費税額)を書き換える

説明

usces_the_itemCpriceCr_taxincluded() で出力する、通貨記号付きの税込金額(商品通常価+消費税額)を書き換えます。

使い方

add_filter( 'usces_filter_the_item_cprice_cr_taxincluded',  'my_filter_the_item_cprice_cr_taxincluded', 10, 2, 3 );
function my_filter_the_item_cprice_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

関連資料