usces_filter_option_info_history / フィルターフック

usces_member_history() で表示する会員の購入履歴データのオプション値の表示を変更できます。

説明

usces_member_history() で表示する会員の購入履歴データのオプション値の表示を変更できます。

使い方

add_filter( 'usces_filter_option_info_history',  'my_filter_option_info_history', 10, 4 );
function my_filter_option_info_history( $optstr, $member_history_order, $cart_row, $i ) {
    //処理
    return $optstr;
}

パラメータ

$optstr
(文字列)会員の購入履歴の商品ごとのオプションの表示
$member_history_order
(配列)会員の購入履歴の商品ごとのオプション情報
$cart_row
(配列)会員の購入履歴のカート情報
$i
(数値)会員の購入履歴のカート内の商品インデックス

注意

usces_filter_option_history フックを上書きしますので注意が必要です。

用例

ソースファイル

usc-e-shop/functions/template_func.php

関連資料

  • usces_member_history()
  • usces_filter_option_history ・・・ usces_member_history() で表示する会員の購入履歴データのオプション値の表示を変更