返信先: [解決済み] カスタムメンバーフィールドに記入例を付けたい。

フォーラム 使い方全般 [解決済み] カスタムメンバーフィールドに記入例を付けたい。 返信先: [解決済み] カスタムメンバーフィールドに記入例を付けたい。

#74826
wtnb
参加者

——————————————-
WordPress のバージョン:
Welcart のバージョン:1.4.17
ご利用のテーマ:
症状を確認したブラウザ:
サーバー(会社名、サービス名):
SSLの利用: 
WordPress のパーマリンク設定:
——————————————–

カスタムメンバーフィールドに例文を記述したい方は多いと思いますので、フックの記述を残しておきます。

add_filter('usces_filter_custom_field_input', 'my_filter_custom_field_input', 1, 4);

function my_filter_custom_field_input($html, $data, $custom_field, $position){
$meta = usces_has_custom_field_meta($custom_field);
$html = preg_replace('|(\\[birthday\])\\"+\\s+value="" />|', '${0}1999/12/31', $html);
return $html;
}