kaz08
フォーラムへの返信
5件の返信を表示中 - 1 - 5件目 (全5件中)
-
フォーラム: プラグイン
返信が含まれるトピック: MW WP Form 完了画面のテンプレート page- thanks.php へ引数を渡したいmunyagu様
ありがとうございます。フィルターフックやアクションフックで試しているのですが完了画面にコンテンツを表示できるフックを見つけました。
function my_mwform_complete_content( $content, $Data ) { return $content; } add_filter( 'mwform_complete_content_mw-wp-form-xxx', 'my_mwform_complete_content', 10, 2 );
プラグインのエディタ内で下記のように定義している情報をフックで表示したいのですがうまくいきません。
どのように記述すれば良いやら、、、[mwform_hidden name=”数字” value=”{number}”]
フォーム本体のエディタでは{number}で表示できます。
完了画面メッセージのフィールドでは{数字}で表示できます。フォーラム: プラグイン
返信が含まれるトピック: MW WP Form 完了画面のテンプレート page- thanks.php へ引数を渡したいフォーラム: プラグイン
返信が含まれるトピック: MW WP Form 完了画面のテンプレート page- thanks.php へ引数を渡したいfunction my_mwform_post_content( $content, $Data ) { $test_custom_array=array('name_test','script_test'); $post_id=$_GET['post_id']; $test=get_field( "test", $post_id,true); if(!empty($test)){ $test_id=$test[0]->ID; foreach($test_custom_array as $meta_key){ $replace_valur=get_field($meta_key,$test_id,true); $content=str_replace('{'.$meta_key.'}',$replace_valur,$content); } } return $content; } add_filter( 'mwform_post_content_mw-wp-form-xxx', 'my_mwform_post_content', 10, 2 );
フォーラム: プラグイン
返信が含まれるトピック: MW WP Form 完了画面のテンプレート page- thanks.php へ引数を渡したいフォーラム: プラグイン
返信が含まれるトピック: MW WP Form サブメニューのみ表示したい
5件の返信を表示中 - 1 - 5件目 (全5件中)