説明
usces_admin_custom_field_input() で表示されるカスタムフィールド(入力フィールド)を書き換えます。
使い方
add_filter( 'usces_filter_admin_custom_field_input', 'my_filter_admin_custom_field_input', 10, 5 ); function my_filter_custom_field_input( $html, $data, $custom_field, $position, $out ) { //処理 return $html; }
パラメータ
- $html
- (HTML)テーブルタグで出力したカスタムフィールド(入力フィールド)のHTML文字列。
- $data
- (配列)カスタムフィールド情報
- $custom_field
- (文字列)カスタムフィールドタイプ
- ‘order’:カスタム・オーダーフィールド
- ‘customer’:カスタム・カスタマーフィールド
- ‘delivery’:カスタム・デリバリーフィールド
- ‘member’:カスタム・メンバーフィールド
- $position
- (文字列)カスタムフィールド表示位置
- ‘name_pre’:「名前」の前
- ‘name_after’:「名前」の後
- ‘fax_after’:「FAX」の後
- $out
- (文字列)戻り値の出力を echo するか return するかを決める。
- ‘return’:return
- ”(空文字)もしくは未設定:echo
用例
ソースファイル
usc-e-shop/functions/template_func.php
関連資料
- usces_admin_custom_field_input()