{"id":1418,"date":"2022-12-27T21:18:31","date_gmt":"2022-12-27T12:18:31","guid":{"rendered":"https:\/\/ginger4545.com\/?p=1418"},"modified":"2022-12-27T21:18:31","modified_gmt":"2022-12-27T12:18:31","slug":"%e3%82%b3%e3%83%94%e3%83%9a%e3%81%a7ok%ef%bc%81contact-form-7%e3%81%a7%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9%e3%81%ae%e7%a2%ba%e8%aa%8d%e7%94%a8%e5%85%a5%e5%8a%9b%e3%81%a8","status":"publish","type":"post","link":"https:\/\/ginger4545.com\/?p=1418","title":{"rendered":"\u30b3\u30d4\u30da\u3067OK\uff01Contact Form 7\u3067\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u78ba\u8a8d\u7528\u5165\u529b\u3068\u4e00\u81f4\u30c1\u30a7\u30c3\u30af\u6a5f\u80fd\u3092\u3064\u3051\u308b\u65b9\u6cd5\u3010WordPress\u3011"},"content":{"rendered":"<p><span><div class=\"st-kaiwa-box kaiwaicon1 clearfix\"><div class=\"st-kaiwa-face\"><img decoding=\"async\" src=\"https:\/\/ginger4545.com\/wp-content\/uploads\/2024\/11\/T-Shirt-MockUp_Front-600x450.png\" width=\"60px\"><div class=\"st-kaiwa-face-name\"><\/div><\/div><div class=\"st-kaiwa-area\"><div class=\"st-kaiwa-hukidashi\">\u300c<span class=\"hutoaka\">\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u78ba\u8a8d\u7528\u30c1\u30a7\u30c3\u30af\u6a5f\u80fd\u3092\u3064\u3051\u305f\u3044<\/span>\u300d<\/div><\/div><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong>WordPress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3Contact Form 7\u3067\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u518d\u5165\u529b\u30c1\u30a7\u30c3\u30af\u6a5f\u80fd\u3092\u3064\u3051\u308b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u65b9\u6cd5\u3067\u3059\u3002<\/strong><\/p>\n<p><span>\u306a\u305c\u304bWordPress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3<span class=\"st-mycolor\">Contact Form 7<\/span>\u306b\u306f<\/span><\/p>\n<p><span>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u518d\u5165\u529b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u9805\u76ee\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/span><\/p>\n<p><span class=\"st-mymarker-s\">\u305b\u3063\u304b\u304f\u554f\u3044\u5408\u308f\u305b\u3092\u3082\u3089\u3063\u305f\u306e\u306b\u95a2\u308f\u3089\u305a<\/span><\/p>\n<p><span class=\"st-mymarker-s\">\u809d\u5fc3\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u9593\u9055\u3063\u3066\u3044\u305f\u3089\u53f0\u7121\u3057\u3067\u3059\u3088\u306d\u3048<span class=\"st-mymarker-s\">\u3002<\/span><\/span><\/p>\n<p>\u4eca\u56de\u306f\u300c<span>Contact Form 7<\/span>\u300d\u3092\u4f7f\u7528\u3057\u3066<br \/>\n\u30e1<span>\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u8aa4\u5165\u529b\u3092\u672a\u7136\u306b\u9632\u3050\u305f\u3081\u306e\u6a5f\u80fd\u3092\u3054\u7d39\u4ecb\uff01\uff01<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span>\u2460\u30c6\u30fc\u30de\u306efunctions.php\u306b\u4ee5\u4e0b\u3092\u8a18\u8ff0\u3002<\/span><\/h3>\n<p>&nbsp;<\/p>\n<h4>\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u7ba1\u7406\u753b\u9762\u304b\u3089\u7de8\u96c6\u3059\u308b\u5834\u5408<\/h4>\n<p><span class=\"st-mymarker-s\"><strong>\u5916\u89b3\u3000\u2192\u3000\u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u30a8\u30c7\u30a3\u30bf\u30fc\u3000\u2192\u3000<\/strong><span><strong>functions.php<\/strong><\/span><\/span><span><strong>\u3000<\/strong><\/span><\/p>\n<h4>FTP\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408<\/h4>\n<p><span class=\"st-mymarker-s\"><strong>wp-content\u3000\u2192\u3000themes\u3000\u2192\u3000(\u4f7f\u7528\u3057\u3066\u3044\u308b\u30c6\u30fc\u30de\u306e\u540d\u79f0)\u3000\u2192\u3000<span class=\"st-mymarker-s\">functions.php<\/span><\/strong><\/span><strong><\/strong><\/p>\n<p>&nbsp;<\/p>\n<div class=\"st-kaiwa-box kaiwaicon1 clearfix\"><div class=\"st-kaiwa-face\"><img decoding=\"async\" src=\"https:\/\/ginger4545.com\/wp-content\/uploads\/2024\/11\/T-Shirt-MockUp_Front-600x450.png\" width=\"60px\"><div class=\"st-kaiwa-face-name\"><\/div><\/div><div class=\"st-kaiwa-area\"><div class=\"st-kaiwa-hukidashi\">\u203bfunctions.php\u3092\u89e6\u308b\u3068\u304d\u306f\u5fc5\u305a\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u3063\u3066\u304a\u3053\u3046\u306d\uff01<\/div><\/div><\/div>\n<p><span><span class=\"st-mymarker-s\"><strong>functions.php<\/strong><\/span>\u306b\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u8a18\u3002<\/span><\/p>\n<pre class=\"st-pre st-terminal\"><span class=\"st-pre-text\"><i class=\"fa fa-terminal st-css-no\" aria-hidden=\"true\"><\/i> command<\/span>\nadd_filter( &#8216;wpcf7_validate_email&#8217;, &#8216;wpcf7_validate_email_filter_extend&#8217;, 11, 2 );\nadd_filter( &#8216;wpcf7_validate_email*&#8217;, &#8216;wpcf7_validate_email_filter_extend&#8217;, 11, 2 );\nfunction wpcf7_validate_email_filter_extend( $result, $tag ) {\n$type = $tag[&#8216;type&#8217;];\n$name = $tag[&#8216;name&#8217;];\n$_POST[$name] = trim( strtr( (string) $_POST[$name], &#8220;n&#8221;, &#8221; &#8221; ) );\nif ( &#8216;email&#8217; == $type || &#8216;email*&#8217; == $type ) {\nif (preg_match(&#8216;\/(.*)_confirm$\/&#8217;, $name, $matches)){ \/\/\u78ba\u8a8d\u7528\u30e1\u30eb\u30a2\u30c9\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u540d\u3092 \u25cb\u25cb\u25cb_confirm \u3068\u3057\u3066\u3044\u307e\u3059\u3002\n$target_name = $matches[1];\nif ($_POST[$name] != $_POST[$target_name]) {\nif (method_exists($result, &#8216;invalidate&#8217;)) {\n$result-&gt;invalidate( $tag,&#8221;\u78ba\u8a8d\u7528\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u4e00\u81f4\u3057\u3066\u3044\u307e\u305b\u3093&#8221;);\n} else {\n$result[&#8216;valid&#8217;] = false;\n$result[&#8216;reason&#8217;][$name] = &#8216;\u78ba\u8a8d\u7528\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u4e00\u81f4\u3057\u3066\u3044\u307e\u305b\u3093&#8217;;\n}\n}\n}\n}\nreturn $result;\n}\n<\/pre>\n<h3><span id=\"Contact_Form_7\">\u2461Contact Form 7\u3067\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3057\u3066\u5b8c\u4e86\uff01<\/span><\/h3>\n<p>\u6b21\u306b\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306e<span>Contact Form 7\u3067\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3057\u3066\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u30bf\u30b0\u3092\u4f5c\u6210\u3057\u3088\u3046\uff01<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ginger4545.com\/wp-content\/uploads\/2022\/12\/2698b13e-cb49-4ac9-bda9-58f2804be499.png\" alt=\"\" width=\"761\" height=\"596\" class=\"alignnone  wp-image-1433\" srcset=\"https:\/\/ginger4545.com\/wp-content\/uploads\/2022\/12\/2698b13e-cb49-4ac9-bda9-58f2804be499.png 878w, https:\/\/ginger4545.com\/wp-content\/uploads\/2022\/12\/2698b13e-cb49-4ac9-bda9-58f2804be499-768x602.png 768w\" sizes=\"(max-width: 761px) 100vw, 761px\" \/><\/p>\n<p>\u3053\u306e\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u3067\u3044\u3046\u3068\u4e0b\u8a18\u306e\uff12\u304b\u6240\u3060\u306d\uff01<\/p>\n<pre class=\"st-pre st-terminal\"><span class=\"st-pre-text\"><i class=\"fa fa-terminal st-css-no\" aria-hidden=\"true\"><\/i> command<\/span>\n<strong>[email* <span class=\"hutoaka\"><span class=\"huto\">your-email<\/span> <\/span>\u00a0placeholder &#8220;\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002&#8221;]<\/strong>\n<strong>[email* <span class=\"hutoaka\">your-email_confirm<\/span>\u00a0 placeholder &#8220;\u78ba\u8a8d\u306e\u305f\u3081\u3082\u3046\u4e00\u5ea6\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002&#8221;]<\/strong>\n<\/pre>\n<p>&nbsp;<\/p>\n<div class=\"st-kaiwa-box kaiwaicon1 clearfix\"><div class=\"st-kaiwa-face\"><img decoding=\"async\" src=\"https:\/\/ginger4545.com\/wp-content\/uploads\/2024\/11\/T-Shirt-MockUp_Front-600x450.png\" width=\"60px\"><div class=\"st-kaiwa-face-name\"><\/div><\/div><div class=\"st-kaiwa-area\"><div class=\"st-kaiwa-hukidashi\">\u30dd\u30a4\u30f3\u30c8\u306f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u78ba\u8a8d\u7528\u306b\u306f\u4f7f\u7528\u3057\u3066\u3044\u308b\u30bf\u30b0\u306b<span class=\"hutoaka\">_confirm<\/span>\u3092\u4ed8\u4e0e\u3059\u308b\u3060\u3051\u3060\u304a\uff01<\/p>\n<p>\u305d\u3053\u3060\u3051\u7d71\u4e00\u3057\u3066\u3044\u308c\u3070\u306a\u3093\u3067\u3082OK\uff01\uff01<\/div><\/div><\/div>\n<p>&nbsp;<\/p>\n<h3><span id=\"i-2\">\u52d5\u4f5c\u78ba\u8a8d\u3057\u3066\u3082\u3001<\/span>\u306a\u305c\u304b\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u6642\u306f\u2026<\/h3>\n<p><strong>\u2460 <span class=\"st-mymarker-s\">functions.php<\/span>\u306b\u5168\u89d2\u6587\u5b57\u306a\u3069\u304c\u5165\u3063\u3066\u306a\u3044\u304b\u30a8\u30c7\u30a3\u30bf\u30fc\u3067\u78ba\u8a8d\u3002<\/strong><\/p>\n<p><strong>\u2461 <span class=\"st-mymarker-s\">functions.php<\/span>\u306b\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3059\u308b\u5834\u6240\u3092\u5909\u66f4\u3057\u3066\u307f\u308b\u3002<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u306e\u3069\u3061\u3089\u304b\u3067\u5927\u4f53\u3046\u307e\u304f\u3044\u304f\u3068\u601d\u308f\u308c\u307e\u3059\u3002<\/p>\n<p><span>\u4ee5\u4e0a\u3001\u3054\u53c2\u8003\u306b\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300c\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u78ba\u8a8d\u7528\u30c1\u30a7\u30c3\u30af\u6a5f\u80fd\u3092\u3064\u3051\u305f\u3044\u300d &nbsp; WordPress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3Contact Form 7\u3067\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u518d\u5165\u529b\u30c1\u30a7\u30c3\u30af\u6a5f\u80fd\u3092\u3064\u3051\u308b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u65b9\u6cd5\u3067\u3059\u3002 \u306a\u305c\u304bWor &#8230; <\/p>\n","protected":false},"author":1,"featured_media":1433,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[91],"tags":[375,372,376,96,377],"_links":{"self":[{"href":"https:\/\/ginger4545.com\/index.php?rest_route=\/wp\/v2\/posts\/1418"}],"collection":[{"href":"https:\/\/ginger4545.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ginger4545.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ginger4545.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ginger4545.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1418"}],"version-history":[{"count":18,"href":"https:\/\/ginger4545.com\/index.php?rest_route=\/wp\/v2\/posts\/1418\/revisions"}],"predecessor-version":[{"id":1438,"href":"https:\/\/ginger4545.com\/index.php?rest_route=\/wp\/v2\/posts\/1418\/revisions\/1438"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ginger4545.com\/index.php?rest_route=\/wp\/v2\/media\/1433"}],"wp:attachment":[{"href":"https:\/\/ginger4545.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ginger4545.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ginger4545.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}