説明
usces_custom_field_input() で表示されるカスタムフィールドを書き換えます。
使い方
add_filter( 'usces_filter_custom_field_info',  'my_filter_custom_field_info', 10, 4 );
function my_filter_custom_field_info( $html, $data, $custom_field, $position ) {
    //処理
    return $html;
}
パラメータ
- $html
 - (HTML)テーブルタグで出力したカスタムフィールドのHTML文字列。
 - $data
 - (配列)カスタムフィールド情報
 - $custom_field
 - (文字列)カスタムフィールドタイプ
- ‘order’:カスタム・オーダーフィールド
 - ‘customer’:カスタム・カスタマーフィールド
 - ‘delivery’:カスタム・デリバリーフィールド
 - ‘member’:カスタム・メンバーフィールド
 
 - $position
 - (文字列)カスタムフィールド表示位置
- ‘name_pre’:「名前」の前
 - ‘name_after’:「名前」の後
 - ‘fax_after’:「FAX」の後
 
 
用例
ソースファイル
usc-e-shop/functions/template_func.php
関連資料
- usces_custom_field_info() ・・・ 入力されたカスタムフィールドの情報を表示する
 
PAGE TOP