###前提・実現したいこと
contactform7の[text][email][tel]等の項目をfunctions.phpで書いたショートコードで挿入したいと思っています。
上記のことは可能なのでしょうか?
可能であればご教授お願いします。
###試したこと
試しに書いたショートコード
function test_func() { $test = '[text text-91]'; return $test; } wpcf7_add_shortcode('test', 'test_func');
contactform7のフォーム
<div class="wpcf7c-elm-step1 wpcf7-mail-sent-ok"> 下記項目にご入力頂き、「入力内容の確認」ボタンを押してください。 </div> <div class="wpcf7c-elm-step2 wpcf7-mail-sent-ok"> 以下の内容でよろしければ「送信する」ボタンを押して下さい。 </div> <div class="wpcf7c-elm-step3 wpcf7-mail-sent-ok"> お問い合わせありがとうございました。 </div> <div class="wpcf7c-elm-step1 wpcf7c-elm-step2"> [test] </div> <p class="flexCm">[back "戻る"][submit "送信"][confirm "入力内容の確認"]</p> <div class="wpcf7mailsent"></div>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/12/06 04:55
退会済みユーザー
2017/12/06 05:04
2017/12/06 05:06
退会済みユーザー
2017/12/06 05:53
2017/12/06 05:57