メモ:
Contact Form 7の入力欄にページタイルを自動で入れる
functions.php
function my_form_tag_filter($tag){
$posttitle= get_the_title();
if(isset($posttitle)){
$name = $tag['name'];
if($name == 'posttitle')
$tag['values'] = (array) $posttitle;
}
return $tag;
}
add_filter('wpcf7_form_tag','my_form_tag_filter', 11);
Contact Form 7にラジオボタン選択済で表示
[radio posttitle default:1]