swallow

投稿の際は下記の情報をお書き添えください。
-------------------------------------------
WordPress のバージョン:(例 6.0.2)
Welcart のバージョン:(例 2.8.1)
PHP のバージョン:(例 8.0)
Welcart専用の拡張プラグインとバージョン:(例 DL Seller 3.4.1、SKU Select 1.4.2)
ご利用の親テーマとバージョン :(例 Welcart Basic 1.7.1)
ご利用の子テーマとバージョン :(例 Welcart Beldad 1.4)
症状を確認したブラウザ:
サーバー【重要】:(会社名、サービス名)
--------------------------------------------

フォーラムへの返信

1件の投稿を表示中 - 16 - 16件目 (全16件中)
  • 投稿者
    投稿
  • swallow
    参加者

    ——————————————-
    WordPress のバージョン:5.4.2
    Welcart のバージョン:1.9.31
    PHP のバージョン:7.3.16
    Welcart専用の拡張プラグインとバージョン:SKU Select 1.1.10
    ご利用のテーマ:EGO (TCD079/Welcart版)
    症状を確認したブラウザ:Chrome
    サーバー:
    SSLの利用:
    ——————————————–

    お世話になります。

    上記記事を見つけ、私もカスタムメンバーフィールドに記入例を設けたいと思い、
    functios.phpに下記記述をしてみたのですが、うまくいきません。

    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;
    }

    どこが間違えているのか、ご教授いただければと思います。
    よろしくお願いいたします。

1件の投稿を表示中 - 16 - 16件目 (全16件中)