{"id":1705,"date":"2018-10-17T21:24:30","date_gmt":"2018-10-17T12:24:30","guid":{"rendered":"https:\/\/www.dogrow.net\/php\/?p=1705"},"modified":"2018-10-17T21:32:53","modified_gmt":"2018-10-17T12:32:53","slug":"blog56","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/php\/blog56\/","title":{"rendered":"(56) \u3010WORDPRESS\u3011 Contact Form 7\u3067\u9001\u4fe1\u30dc\u30bf\u30f3\u3092\u6709\u52b9\/\u7121\u52b9\u5207\u308a\u66ff\u3048"},"content":{"rendered":"<h1 class=\"my_h\">1. \u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>WORDPRESS\u4e0a\u3067 \u300c\u304a\u554f\u3044\u5408\u308f\u305b\u300d \u30da\u30fc\u30b8\u3092\u5b9f\u88c5\u3059\u308b\u306b\u306f Contact Form 7 \u304c\u3068\u3063\u3066\u3082\u4fbf\u5229\u3060\u3002<br \/>\n<a href=\"https:\/\/ja.wordpress.org\/plugins\/contact-form-7\/\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/php\/wp-content\/uploads\/2018\/10\/003-3.png\" alt=\"\" \/><\/a><\/p>\n<p>\u3053\u308c\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3057\u305f\u300c\u304a\u554f\u3044\u5408\u308f\u305b\u300d\u30da\u30fc\u30b8\u3067\u3001<br \/>\n\u300c\u4e0a\u8a18\u306e\u5185\u5bb9\u3067\u9001\u4fe1\u3057\u307e\u3059\u3002\u300d<br \/>\n\u3068\u66f8\u3044\u305f\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e ON\/OFF \u306b\u3088\u308a [\u9001\u4fe1] \u30dc\u30bf\u30f3\u306e\u6709\u52b9\/\u7121\u52b9\u3092\u5207\u308a\u66ff\u3048\u305f\u3044\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/php\/wp-content\/uploads\/2018\/10\/004-2.png\" alt=\"\" \/><\/p>\n<h1 class=\"my_h\">2. \u3084\u3063\u3066\u307f\u308b<\/h1>\n<p><span class=\"my_fc_crimson my_fs_big2\">\u203b\u6240\u671b\u306e\u6a5f\u80fd\u3092\u5b9f\u73fe\u3067\u304d\u305f\u304c\u3001\u3053\u308c\u304c\u6b63\u3057\u3044\u65b9\u6cd5\u304b\u3069\u3046\u304b\u306f\u308f\u304b\u3089\u306a\u3044&#8230;<\/span><\/p>\n<h2 class=\"my_h\">(1) \u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3068\u9001\u4fe1\u30dc\u30bf\u30f3\u306b ID\u3092\u4ed8\u4e0e\u3059\u308b\u3002<\/h2>\n<p>\u30b3\u30f3\u30bf\u30af\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u7de8\u96c6\u753b\u9762\u3067\u3001\u4ee5\u4e0b\u306e 2\u8981\u7d20\u306b ID\u3092\u4ed8\u4e0e\u3059\u308b\u3002<br \/>\n1) \u9001\u4fe1\u78ba\u8a8d\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9 : chk_ok<br \/>\n2) \u9001\u4fe1\u30dc\u30bf\u30f3 : exec-send<\/p>\n<pre>\r\n[acceptance acceptance-128 <span class=\"my_fc_deeppink\">id:chk_ok<\/span>] \u4e0a\u8a18\u306e\u5185\u5bb9\u3067\u9001\u4fe1\u3057\u307e\u3059\u3002 [\/acceptance]\r\n[submit <span class=\"my_fc_deeppink\">id:exec-send<\/span> \"\u9001\u4fe1\"]\r\n<\/pre>\n<h2 class=\"my_h\">(2) \u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u64cd\u4f5c\u6642\u306b\u9001\u4fe1\u30dc\u30bf\u30f3\u306e\u72b6\u614b\u3092\u5207\u308a\u66ff\u3048\u308b\u3002<\/h2>\n<p>\u3053\u308c\u306f JavaScript\u3067\u8a18\u8ff0\u3059\u308b\u3002<\/p>\n<p>\u8a18\u8ff0\u5834\u6240\u306f\u4ee5\u4e0b\u306e\u4e8c\u3064\u306e\u3069\u3061\u3089\u3067\u3082\u3088\u3044\u3002<br \/>\n\u65b9\u6cd51) \u30b3\u30f3\u30bf\u30af\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u305f\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u8a18\u8ff0\u3059\u308b\u3002<br \/>\n\u65b9\u6cd52) \u5916\u90e8\u306e js\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u3044\u3066 functions.php \u3067 add_action(&#8216;wp_enqueue_scripts&#8217;, xxxxx) \u3059\u308b\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\njQuery(function() {\r\n  jQuery('#chk_ok').on('click', function() {\r\n    SetConditionOfSubmit();\r\n  });\r\n});\r\nfunction SetConditionOfSubmit(){\r\n  var chk = jQuery('#chk_ok').prop('checked');\r\n  jQuery('#exec-send').attr('disabled', !chk);\r\n}\r\n<\/pre>\n<h2 class=\"my_h\">(3) \u30da\u30fc\u30b8\u8868\u793a\u6642\u306e\u9001\u4fe1\u30dc\u30bf\u30f3\u306e\u521d\u671f\u72b6\u614b\u3092\u300c\u7121\u52b9\u300d\u306b\u3059\u308b\u3002<\/h2>\n<p>\u30b3\u30f3\u30bf\u30af\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u305f\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u4ee5\u4e0b\u3092\u8a18\u8ff0\u3059\u308b\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;script&gt;SetConditionOfSubmit();&lt;\/script&gt;\r\n<\/pre>\n<h1 class=\"my_h\">3. \u3067\u304d\u305f\uff01<\/h1>\n<p><img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/php\/wp-content\/uploads\/2018\/10\/001-4.png\" alt=\"\" \/> <img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/php\/wp-content\/uploads\/2018\/10\/002-4.png\" alt=\"\" \/><\/p>\n<p>\u518d\u5ea6\u66f8\u304f\u304c&#8230;<br \/>\n<span class=\"my_fc_crimson my_fs_big2\">\u203b\u3053\u308c\u304c\u6b63\u3057\u3044\u65b9\u6cd5\u304b\u3069\u3046\u304b\u306f\u308f\u304b\u3089\u306a\u3044&#8230;<\/span><br \/>\nContact Form 7\u306b\u4f55\u304b\u30b9\u30de\u30fc\u30c8\u306a\u65b9\u6cd5\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u6c17\u304c\u3059\u308b\u3002<\/p>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>1. \u3084\u308a\u305f\u3044\u3053\u3068 WORDPRESS\u4e0a\u3067 \u300c\u304a\u554f\u3044\u5408\u308f\u305b\u300d \u30da\u30fc\u30b8\u3092\u5b9f\u88c5\u3059\u308b\u306b\u306f Contact Form 7 \u304c\u3068\u3063\u3066\u3082\u4fbf\u5229\u3060\u3002 \u3053\u308c\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3057\u305f\u300c\u304a\u554f\u3044\u5408\u308f\u305b\u300d\u30da\u30fc\u30b8\u3067\u3001 \u300c\u4e0a\u8a18\u306e\u5185\u5bb9\u3067\u9001\u4fe1\u3057\u307e\u3059\u3002\u300d \u3068\u66f8\u3044\u305f\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/php\/blog56\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1705","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"views":7521,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/posts\/1705","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/comments?post=1705"}],"version-history":[{"count":12,"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/posts\/1705\/revisions"}],"predecessor-version":[{"id":1721,"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/posts\/1705\/revisions\/1721"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/media?parent=1705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/categories?post=1705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/tags?post=1705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}