usces_filter_history_cart_head / フィルターフック

購入履歴の商品情報ラベルの変更

説明

usces_member_history() で出力される購入履歴の「No.」や「商品」などの商品情報のラベルと内容を変更します。

使い方

add_filter( 'usces_filter_history_cart_head',  'my_filter_history_cart_head', 10, 2 );
function my_filter_history_cart_head( $history_cart_head, $umhs ) {
    //処理
    return $history_cart_head;
}

パラメータ

$history_cart_head
(文字列)デフォルトの html
$umhs
(配列)購入履歴の注文情報

注意

'' で始まり、'' で終わるようにしてください。

用例

add_filter( 'usces_filter_history_cart_head',  'my_filter_history_cart_head', 10, 2 );
function my_filter_history_cart_head( $history_cart_head, $umhs ) {
    $history_cart_head = '
        No.
        商品画像
        商品名
        単価
        数
        金額 '
        ';
    return $history_cart_head;
}

変更履歴

  • 1.3.3 にて導入されました。

ソースファイル

usc-e-shop/functions/template_func.php

関連資料

  • usces_member_history()