{"id":4817,"date":"2023-08-02T16:27:14","date_gmt":"2023-08-02T07:27:14","guid":{"rendered":"http:\/\/www.lining-moon.casa\/andplus.co.jp_230822_230809\/?p=4817"},"modified":"2026-11-04T10:48:44","modified_gmt":"2026-11-04T01:48:44","slug":"post-4817","status":"publish","type":"post","link":"https:\/\/code-plus.jp\/gp\/post-4817\/","title":{"rendered":"MW WP Form\u306e\u65e5\u4ed8\u30d4\u30c3\u30ab\u30fc\u3067\u7279\u5b9a\u306e\u66dc\u65e5\u30fb\u795d\u65e5\u3092\u9078\u629e\u4e0d\u53ef\u306b\u3059\u308b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba"},"content":{"rendered":"<p>WordPress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u300cMW WP Form\u300d\u306f\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u30ab\u30b9\u30bf\u30e0\u30d5\u30a9\u30fc\u30e0\u3092\u8ffd\u52a0\u3059\u308b\u305f\u3081\u306e\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u305d\u306e\u4e2d\u306b\u306f\u3001\u65e5\u4ed8\u3092\u9078\u629e\u3059\u308b\u305f\u3081\u306e\u300c\u65e5\u4ed8\u30d4\u30c3\u30ab\u30fc\u300d\u3082\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u305d\u306e\u65e5\u4ed8\u30d4\u30c3\u30ab\u30fc\u306e\u4f7f\u3044\u65b9\u3068\u3001\u7279\u5b9a\u306e\u65e5\u3092\u9078\u629e\u4e0d\u53ef\u306b\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\r\n<p><\/p>\r\n<h3>MW WP Form\u306e\u65e5\u4ed8\u30d4\u30c3\u30ab\u30fc\u3068\u306f<\/h3>\r\n<p>MW WP Form\u306e\u65e5\u4ed8\u30d4\u30c3\u30ab\u30fc\u306f\u3001[mwform_datepicker]\u3068\u3044\u3046\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306b\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u65e5\u4ed8\u3092\u9078\u629e\u3067\u304d\u308bUI\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\r\n<p><\/p>\r\n<p>\u4ee5\u4e0b\u306b\u3001\u57fa\u672c\u7684\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u305f\u4f8b\u3092\u793a\u3057\u307e\u3059\uff1a<\/p>\r\n<p><code>\r\n[mwform_datepicker name=\"preferday1\" id=\"mw-client-preferday1\" class=\"input\" js=\"minDate: 30, maxDate: 90\" placeholder=\" \u65e5\u4ed8\u3092\u9078\u629e\"]\r\n<\/code><\/p>\r\n<p><\/p>\r\n<p>\u3053\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\uff1a<\/p>\r\n<p><\/p>\r\n<p><b class=\"fw-600\">name:<\/b> \u30d5\u30a9\u30fc\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30d5\u30a9\u30fc\u30e0\u30c7\u30fc\u30bf\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u3068\u304d\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\r\n<p><b class=\"fw-600\">id: <\/b>HTML\u8981\u7d20\u306eID\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001CSS\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u3084JavaScript\u3067\u7279\u5b9a\u306e\u8981\u7d20\u3092\u53c2\u7167\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\r\n<p><b class=\"fw-600\">class:<\/b> HTML\u8981\u7d20\u306e\u30af\u30e9\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u308c\u3082\u3001CSS\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u3084JavaScript\u3067\u7279\u5b9a\u306e\u8981\u7d20\u3092\u53c2\u7167\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\r\n<p><b class=\"fw-600\">js:<\/b> JavaScript\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u6307\u5b9a\u3055\u308c\u305f\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001\u65e5\u4ed8\u30d4\u30c3\u30ab\u30fc\u306e\u52d5\u4f5c\u306b\u5f71\u97ff\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001minDate: 30, maxDate: 90\u306f\u3001\u9078\u629e\u53ef\u80fd\u306a\u65e5\u4ed8\u7bc4\u56f2\u3092\u73fe\u5728\u306e\u65e5\u4ed8\u304b\u308930\u65e5\u5f8c\u304b\u308990\u65e5\u5f8c\u307e\u3067\u306b\u5236\u9650\u3057\u307e\u3059\u3002<\/p>\r\n<p><b class=\"fw-600\">placeholder:<\/b> \u30d5\u30a9\u30fc\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u7a7a\u306e\u3068\u304d\u306b\u8868\u793a\u3055\u308c\u308b\u30c6\u30ad\u30b9\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\r\n<p><\/p>\r\n<h3>\u7279\u5b9a\u306e\u65e5\u3092\u9078\u629e\u4e0d\u53ef\u306b\u3059\u308b<\/h3>\r\n<p>\u65e5\u4ed8\u30d4\u30c3\u30ab\u30fc\u3092\u3055\u3089\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u3001\u7279\u5b9a\u306e\u65e5\uff08\u4f8b\u3048\u3070\u3001\u5b9a\u4f11\u65e5\u3084\u795d\u65e5\uff09\u3092\u9078\u629e\u4e0d\u53ef\u306b\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u4ee5\u4e0b\u306b\u3001\u305d\u306e\u65b9\u6cd5\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\r\n<pre class=\"language-javascript\"><code>\r\n&lt;script&gt;\r\n\/\/\u5b9a\u4f11\u65e5\u3092\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u9078\u629e\u4e0d\u53ef\u306b\u3059\u308b\r\njQuery(function ($) {\r\n  var holidays = [\r\n  20230101, 20230102, 20230109, 20230211, 20230223, 20230321, 20230429, 20230503, 20230504, 20230505, 20230717, 20230811, 20230918, 20230923, 20231009, 20231103, 20231123, 20231223, 20231231\r\n  ];\r\n\r\n  var exOpenday = [\r\n    \/\/ \u3053\u3053\u306b\u7279\u5225\u306b\u55b6\u696d\u3059\u308b\u65e5\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u4f8b\uff1a20230506, 20230507\r\n  ];\r\n\r\n  $(\".hasDatepicker\").datepicker(\"option\", \"beforeShowDay\", function (date) {\r\n    var yymmdd = date.getFullYear() * 10000 + (date.getMonth() + 1) * 100 + date.getDate();\r\n    var day = date.getDay();\r\n    var isHoliday = holidays.includes(yymmdd);\r\n    var isHoliDayWeek = (day == 0 || day == 6);\r\n    var isExOpenday = exOpenday.includes(yymmdd);\r\n\r\n    return [(isHoliday || isHoliDayWeek) &amp;&amp; !isExOpenday ? false : true];\r\n  });\r\n\r\n  \/\/\u65e5\u4ed8\u30d4\u30c3\u30ab\u30fc\u306e\u9805\u76ee\u306e\u307f\u3001\u30aa\u30fc\u30c8\u30b3\u30f3\u30d7\u30ea\u30fc\u30c8\u6a5f\u80fd\u3092\u7121\u52b9\r\n  $('form .hasDatepicker').attr('autocomplete', 'off');\r\n});\r\n&lt;\/script&gt;\r\n<\/code><\/pre>\r\n<p><\/p>\r\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001holidays\u3068\u3044\u3046\u914d\u5217\u306b\u795d\u65e5\u306e\u65e5\u4ed8\u3092\u683c\u7d0d\u3057\u3001exOpenday\u3068\u3044\u3046\u914d\u5217\u306b\u7279\u5225\u306b\u55b6\u696d\u3059\u308b\u65e5\u3092\u683c\u7d0d\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u3001beforeShowDay\u95a2\u6570\u5185\u3067\u3001\u9078\u629e\u3055\u308c\u305f\u65e5\u4ed8\u304c\u795d\u65e5\u307e\u305f\u306f\u9031\u672b\uff08\u571f\u66dc\u65e5\u307e\u305f\u306f\u65e5\u66dc\u65e5\uff09\u3067\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002\u3082\u3057\u795d\u65e5\u307e\u305f\u306f\u9031\u672b\u3067\u3042\u308c\u3070\u3001\u305d\u306e\u65e5\u306f\u9078\u629e\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u305d\u306e\u65e5\u304cexOpenday\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u305d\u306e\u65e5\u3092\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\r\n<p><\/p>\r\n<p>\u4ee5\u4e0a\u304c\u3001MW WP Form\u306e\u65e5\u4ed8\u30d4\u30c3\u30ab\u30fc\u306e\u4f7f\u3044\u65b9\u3068\u3001\u7279\u5b9a\u306e\u65e5\u3092\u9078\u629e\u4e0d\u53ef\u306b\u3059\u308b\u65b9\u6cd5\u306e\u89e3\u8aac\u3067\u3059\u3002\u3053\u306e\u60c5\u5831\u304c\u5f79\u7acb\u3064\u3053\u3068\u3092\u9858\u3063\u3066\u3044\u307e\u3059\u3002<\/p>","protected":false},"excerpt":{"rendered":"WordPress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u300cMW WP Form\u300d\u306f\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u30ab\u30b9\u30bf\u30e0\u30d5\u30a9\u30fc\u30e0\u3092\u8ffd\u52a0\u3059\u308b\u305f\u3081\u306e\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u305d\u306e\u4e2d\u306b\u306f\u3001\u65e5\u4ed8\u3092\u9078\u629e\u3059\u308b\u305f\u3081\u306e\u300c\u65e5\u4ed8\u30d4\u30c3\u30ab\u30fc\u300d\u3082\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u305d\u306e\u65e5\u4ed8\u30d4\u30c3\u30ab\u30fc\u306e[...]","protected":false},"author":1,"featured_media":15982,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[9],"tags":[],"group":[],"pg":[],"class_list":["post-4817","post","type-post","status-publish","format-standard","has-post-thumbnail","category-php-wordpress"],"acf":[],"_links":{"self":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/4817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/comments?post=4817"}],"version-history":[{"count":1,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/4817\/revisions"}],"predecessor-version":[{"id":15792,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/4817\/revisions\/15792"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/media\/15982"}],"wp:attachment":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/media?parent=4817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/categories?post=4817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/tags?post=4817"},{"taxonomy":"group","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/group?post=4817"},{"taxonomy":"pg","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/pg?post=4817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}