{"id":27082,"date":"2025-05-31T19:14:49","date_gmt":"2025-05-31T10:14:49","guid":{"rendered":"https:\/\/motoki-design.co.jp\/wordpress\/?p=27082"},"modified":"2026-10-21T22:26:20","modified_gmt":"2026-10-21T13:26:20","slug":"custom-field-editor","status":"publish","type":"post","link":"https:\/\/motoki-design.co.jp\/wordpress\/custom-field-editor\/","title":{"rendered":"WordPress\u2502\u7ba1\u7406\u753b\u9762\u306b\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u4e00\u89a7\uff65\u7de8\u96c6\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u30c7\u30fc\u30bf\u3092\u4e00\u89a7\u3059\u308b\u3001\u307e\u305f\u306f\u5165\u529b\u3059\u308b\u969b\u306b\u307e\u3068\u3081\u3066\u3084\u3063\u3066\u3057\u307e\u3044\u305f\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u3067\u306f\u6295\u7a3f\u306b\u72ec\u81ea\u306eprice\u30e1\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u4e00\u89a7\u753b\u9762\u3092\u4f5c\u308a\u307e\u3059\u3002\u6709\u6599\u8a18\u4e8b\u30b5\u30fc\u30d3\u30b9\u3084\u6c7a\u6e08\u30b7\u30b9\u30c6\u30e0\u306e\u8ca9\u58f2\u4fa1\u683c\u3092\u5909\u66f4\u3059\u308b\u6a5f\u80fd\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u65e2\u5b58\u30b5\u30fc\u30d3\u30b9\u304c\u540c\u540d\u30e1\u30bf\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001\u3053\u306e\u4f8b\u3092\u305d\u306e\u307e\u307e\u5c0e\u5165\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-border\"><img decoding=\"async\" width=\"812\" height=\"474\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_19h06_26-812x474.png\" alt=\"WordPress\u7ba1\u7406\u753b\u9762\u306b\u4f5c\u6210\u3057\u305f\u6709\u6599\u8a18\u4e8b\u306e\u4fa1\u683c\u4e00\u89a7\u3084\u7de8\u96c6\u5c02\u7528\u30e1\u30cb\u30e5\u30fc\u306e\u753b\u9762\u4f8b\u3002\" class=\"wp-image-27086\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_19h06_26-812x474.png 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_19h06_26-382x223.png 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_19h06_26-768x448.png 768w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_19h06_26.png 845w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u8a18\u4e8b\u3067\u306f\u305d\u306e\u4f5c\u308a\u65b9\u3092\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-group is-style-big_icon_good\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\">\u3061\u306a\u307f\u306b\u3044\u308d\u3044\u308d\u306a\u6280\u8853\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3088\u304b\u3063\u305f\u3089\u898b\u3066\u304f\u3060\u3055\u3044\u307e\u305b\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<a href=\"https:\/\/codoc.jp\/sites\/motoki\" class=\"c-blogLink -external\" data-style=\"text\" target=\"_blank\" rel=\"noopener noreferrer\">\n\t\t\t\t<!-- <i class=\"c-blogLink__icon icon-link\" role=\"presentation\"><\/i> -->\n\t\t\t\t<span class=\"c-blogLink__icon\">\n\t\t\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"swl-svg-externalLink __svg\" width=\"1em\" height=\"1em\" viewBox=\"0 0 48 48\" role=\"img\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M44 2H30c-1.1 0-2 .9-2 2s.9 2 2 2h9.2L24 21.2c-.8.8-.8 2 0 2.8s2 .8 2.8 0L42 8.8V18c0 1.1.9 2 2 2s2-.9 2-2V4c0-1.1-.9-2-2-2z\" \/><path d=\"M41 27c-1.1 0-2 .9-2 2v10c0 1.1-.9 2-2 2H9c-1.1 0-2-.9-2-2V11c0-1.1.9-2 2-2h10c1.1 0 2-.9 2-2s-.9-2-2-2H9c-3.3 0-6 2.7-6 6v28c0 3.3 2.7 6 6 6h28c3.3 0 6-2.7 6-6V29c0-1.1-.9-2-2-2z\" \/><\/svg>\t\t\t\t<\/span>\n\t\t\t\t<span class=\"c-blogLink__text\">WAZA\u306e\u6709\u6599\u6280\u8853\u8a18\u4e8b\u4e00\u89a7<\/span>\n\t\t\t<\/a>\n\t\t<\/div><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">WordPress\u306e\u7ba1\u7406\u753b\u9762\u306b\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u4e00\u89a7\uff65\u7de8\u96c6\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u306f\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u7528\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306f\u4fa1\u683c\uff08price\uff09\u3068\u3044\u3046\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3044\u3064\u3082\u3067\u3042\u308c\u3070ACF\u304bSCF\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u4f5c\u6210\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u4e00\u3064\u3067\u3042\u308c\u3070functions.php\u3067\u66f8\u3044\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u4f5c\u6210<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c0e\u5165\u524d\u306b\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5b50\u30c6\u30fc\u30de\u306efunctions.php\u304bCode Snippets\u306e\u3069\u3061\u3089\u304b\u4e00\u65b9\u3078\u8ffd\u52a0\u3057\u307e\u3059\u3002\u4e21\u65b9\u3078\u91cd\u8907\u767b\u9332\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u6700\u521d\u306e\u30b3\u30fc\u30c9\u306f\u5171\u901a\u51e6\u7406\u3082\u542b\u3080\u305f\u3081\u3001\u4e00\u89a7\u753b\u9762\u3092\u4f7f\u3046\u5834\u5408\u306b\u3082\u5fc5\u8981\u3067\u3059\u3002\u8ffd\u52a0\u5834\u6240\u306e\u9078\u3073\u65b9\u306f<a href=\"https:\/\/motoki-design.co.jp\/wordpress\/wordpress-add-custom-code\/\">WordPress\u306b\u30ab\u30b9\u30bf\u30e0\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">functions.php\u306b\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u633f\u5165\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"is-style-icon_pen wp-block-paragraph\">Code Snippets\u3092\u4f7f\u3046\u5834\u5408\u3082\u3001\u691c\u8a3c\u74b0\u5883\u3067\u78ba\u8a8d\u3057\u3066\u304b\u3089\u6709\u52b9\u306b\u3057\u307e\u3059\u3002\u30d7\u30e9\u30b0\u30a4\u30f3\u3078\u767b\u9332\u3059\u308b\u3060\u3051\u3067\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u3084\u30c7\u30fc\u30bf\u306e\u8aa4\u66f4\u65b0\u3092\u9632\u3052\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>\/\/ \u6295\u7a3f\u753b\u9762\u306b\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u30a8\u30ea\u30a2\u3092\u8ffd\u52a0\nadd_action(&#39;add_meta_boxes_post&#39;, function () {\n  add_meta_box(\n    &#39;custom_price_box&#39;,\n    &#39;\u4fa1\u683c&#39;,\n    &#39;render_custom_price_field&#39;,\n    &#39;post&#39;,\n    &#39;side&#39;,\n    &#39;default&#39;\n  );\n});\n\n\/\/ \u672a\u5165\u529b\u306f\u524a\u9664\u30010\u4ee5\u4e0a\u306e\u6574\u6570\u306f\u4fdd\u5b58\u3002\u305d\u308c\u4ee5\u5916\u306f\u4fdd\u5b58\u3057\u306a\u3044\u3002\nfunction waza_custom_price_value($raw)\n{\n  if (!is_string($raw)) {\n    return new WP_Error(&#39;invalid_price&#39;, &#39;\u4fa1\u683c\u306f0\u4ee5\u4e0a\u306e\u6574\u6570\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002&#39;);\n  }\n  $value = trim(wp_unslash($raw));\n  if ($value !== &#39;&#39; &amp;&amp; !preg_match(&#39;\/\\A[0-9]+\\z\/&#39;, $value)) {\n    return new WP_Error(&#39;invalid_price&#39;, &#39;\u4fa1\u683c\u306f0\u4ee5\u4e0a\u306e\u6574\u6570\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002&#39;);\n  }\n  return $value;\n}\n\n\/\/ \u5bfe\u8c61\u6295\u7a3f\u306eprice\u3060\u3051\u3092\u5909\u66f4\u3057\u3001\u4fdd\u5b58\u5f8c\u306e\u5024\u3092\u7167\u5408\u3059\u308b\u3002\nfunction waza_custom_price_write($post_id, $value)\n{\n  if ($value === &#39;&#39;) {\n    delete_post_meta($post_id, &#39;price&#39;);\n    return !metadata_exists(&#39;post&#39;, $post_id, &#39;price&#39;);\n  }\n  update_post_meta($post_id, &#39;price&#39;, $value);\n  return get_post_meta($post_id, &#39;price&#39;, true) === $value;\n}\n\nfunction render_custom_price_field($post)\n{\n  if (!current_user_can(&#39;edit_post&#39;, $post-&gt;ID)) {\n    return;\n  }\n  $price = get_post_meta($post-&gt;ID, &#39;price&#39;, true);\n  if (!is_scalar($price)) {\n    echo &#39;&lt;p&gt;\u8907\u5408\u5024\u306e\u305f\u3081\u3001\u3053\u306e\u5165\u529b\u6b04\u3067\u306f\u7de8\u96c6\u3067\u304d\u307e\u305b\u3093\u3002&lt;\/p&gt;&#39;;\n    return;\n  }\n  wp_nonce_field(&#39;save_custom_price&#39;, &#39;custom_price_nonce&#39;);\n  echo &#39;&lt;label for=&quot;price&quot;&gt;\u4fa1\u683c\uff08\u5186\uff09&lt;\/label&gt;&#39;;\n  echo &#39;&lt;input type=&quot;number&quot; min=&quot;0&quot; step=&quot;1&quot; id=&quot;price&quot; name=&quot;price&quot; value=&quot;&#39; . esc_attr($price) . &#39;&quot; style=&quot;width:100%;&quot; \/&gt;&#39;;\n}\n\nadd_action(&#39;save_post&#39;, function ($post_id) {\n  if ((defined(&#39;DOING_AUTOSAVE&#39;) &amp;&amp; DOING_AUTOSAVE)\n    || wp_is_post_autosave($post_id) || wp_is_post_revision($post_id)\n    || get_post_type($post_id) !== &#39;post&#39;\n    || (is_multisite() &amp;&amp; ms_is_switched())\n    || !current_user_can(&#39;edit_post&#39;, $post_id)) {\n    return;\n  }\n  if (!isset($_POST[&#39;custom_price_nonce&#39;])\n    || !is_string($_POST[&#39;custom_price_nonce&#39;])\n    || !wp_verify_nonce(wp_unslash($_POST[&#39;custom_price_nonce&#39;]), &#39;save_custom_price&#39;)\n    || !isset($_POST[&#39;price&#39;])) {\n    return;\n  }\n  \/\/ \u65e2\u5b58\u306e\u8907\u5408\u5024\u3092\u8aa4\u3063\u3066\u7a7a\u6b04\u6271\u3044\u306b\u3057\u306a\u3044\u3002\n  if (!is_scalar(get_post_meta($post_id, &#39;price&#39;, true))) {\n    return;\n  }\n  $value = waza_custom_price_value($_POST[&#39;price&#39;]);\n  if (!is_wp_error($value)) {\n    waza_custom_price_write($post_id, $value);\n  }\n});\n\n\/\/ \u4e00\u89a7\u306e\u4fdd\u5b58\u51e6\u7406\u3002\u8868\u793a\u5bfe\u8c61\u3068\u6295\u7a3f\u5358\u4f4d\u306e\u6a29\u9650\u3092\u518d\u78ba\u8a8d\u3059\u308b\u3002\nfunction waza_custom_price_bulk_save($posts)\n{\n  if (!current_user_can(&#39;manage_options&#39;)\n    || !isset($_POST[&#39;custom_price_list_nonce&#39;])\n    || !is_string($_POST[&#39;custom_price_list_nonce&#39;])\n    || !wp_verify_nonce(wp_unslash($_POST[&#39;custom_price_list_nonce&#39;]), &#39;save_custom_price_list&#39;)) {\n    return new WP_Error(&#39;invalid_request&#39;, &#39;\u6a29\u9650\u307e\u305f\u306f\u78ba\u8a8d\u60c5\u5831\u304c\u7121\u52b9\u3067\u3059\u3002\u518d\u8868\u793a\u3057\u3066\u304f\u3060\u3055\u3044\u3002&#39;);\n  }\n  if (!isset($_POST[&#39;price&#39;]) || !is_array($_POST[&#39;price&#39;])) {\n    return new WP_Error(&#39;invalid_input&#39;, &#39;\u4fa1\u683c\u306e\u5165\u529b\u5f62\u5f0f\u304c\u4e0d\u6b63\u3067\u3059\u3002&#39;);\n  }\n  $allowed_ids = array_map(&#39;intval&#39;, wp_list_pluck($posts, &#39;ID&#39;));\n  $updates = [];\n  foreach ($_POST[&#39;price&#39;] as $key =&gt; $raw) {\n    if (!preg_match(&#39;\/\\A[1-9][0-9]*\\z\/&#39;, (string) $key)) {\n      return new WP_Error(&#39;invalid_id&#39;, &#39;\u5bfe\u8c61\u6295\u7a3f\u304c\u4e0d\u6b63\u3067\u3059\u3002&#39;);\n    }\n    $post_id = (int) $key;\n    if (!in_array($post_id, $allowed_ids, true)\n      || get_post_type($post_id) !== &#39;post&#39;\n      || get_post_status($post_id) !== &#39;publish&#39;\n      || !current_user_can(&#39;edit_post&#39;, $post_id)\n      || !is_scalar(get_post_meta($post_id, &#39;price&#39;, true))) {\n      return new WP_Error(&#39;invalid_target&#39;, &#39;\u7de8\u96c6\u3067\u304d\u306a\u3044\u6295\u7a3f\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002&#39;);\n    }\n    $value = waza_custom_price_value($raw);\n    if (is_wp_error($value)) {\n      return $value;\n    }\n    $updates[$post_id] = $value;\n  }\n  \/\/ \u5165\u529b\u5168\u4f53\u304c\u9069\u5207\u306a\u5834\u5408\u3060\u3051\u66f8\u304d\u8fbc\u3080\u3002DB\u969c\u5bb3\u6642\u306e\u4e00\u62ec\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u306f\u884c\u308f\u306a\u3044\u3002\n  foreach ($updates as $post_id =&gt; $value) {\n    if (!waza_custom_price_write($post_id, $value)) {\n      return new WP_Error(&#39;save_failed&#39;, &#39;\u4e00\u90e8\u3092\u4fdd\u5b58\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u518d\u8868\u793a\u3057\u3066\u5024\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002&#39;);\n    }\n  }\n  return count($updates);\n}\n<\/code><\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u8868\u793a\u5834\u6240<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b3\u30fc\u30c9\u306b<code>side<\/code>\u3068\u8a2d\u5b9a\u3057\u305f\u5834\u5408\u306f\u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u8a2d\u7f6e\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img decoding=\"async\" width=\"297\" height=\"243\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_19h01_53.png\" alt=\"\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u8868\u793a\u5834\u6240\u3092\u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u8a2d\u5b9a\u3057\u305f\u969b\u306e\u914d\u7f6e\u4f8b\u3002\" class=\"wp-image-27085\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><code>normal<\/code>\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u6295\u7a3f\u7de8\u96c6\u753b\u9762\u306e\u672c\u6587\u4e0b\u306e\u9818\u57df\u306b\u914d\u7f6e\u3057\u307e\u3059\u3002\u30a8\u30c7\u30a3\u30bf\u30fc\u3084\u753b\u9762\u8a2d\u5b9a\u306b\u3088\u308a\u898b\u3048\u65b9\u306f\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img decoding=\"async\" width=\"664\" height=\"286\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_17h34_01.png\" alt=\"\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u8868\u793a\u5834\u6240\u3092\u7de8\u96c6\u8a18\u4e8b\u4e0b\u306b\u8a2d\u5b9a\u3057\u305f\u969b\u306e\u914d\u7f6e\u4f8b\u3002\" class=\"wp-image-27084\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_17h34_01.png 664w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_17h34_01-382x165.png 382w\" sizes=\"(max-width: 664px) 100vw, 664px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u5c02\u7528\u7ba1\u7406\u753b\u9762\u306e\u4f5c\u6210<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u89a7\u306f\u7d5e\u308a\u8fbc\u307f\u4ed8\u304d\u7248\u3068\u30b7\u30f3\u30d7\u30eb\u7248\u306e\u3069\u3061\u3089\u304b\u4e00\u65b9\u3060\u3051\u3092\u4f7f\u3044\u307e\u3059\u3002\u540c\u3058\u95a2\u6570\u540d\u3092\u542b\u3080\u305f\u3081\u3001\u4e21\u65b9\u3092\u767b\u9332\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\u5bfe\u8c61\u306f\u7de8\u96c6\u6a29\u9650\u306e\u3042\u308b\u516c\u958b\u6295\u7a3f\u3067\u3001\u53d6\u5f97\u3059\u308b\u306e\u306f\u6700\u5927100\u4ef6\u3067\u3059\u3002\u5168\u6295\u7a3f\u306e\u4e00\u89a7\u3084\u30da\u30fc\u30b8\u9001\u308a\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4fa1\u683c\u306f0\u4ee5\u4e0a\u306e\u6574\u6570\u3067\u5165\u529b\u3057\u307e\u3059\u30020\u306f\u4fdd\u5b58\u3057\u3001\u7a7a\u6b04\u306f\u305d\u306e\u6295\u7a3f\u306eprice\u30e1\u30bf\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u8ca0\u6570\u30fb\u5c0f\u6570\u30fb\u914d\u5217\u7b49\u306e\u4e0d\u6b63\u306a\u5165\u529b\u306f\u4fdd\u5b58\u3057\u307e\u305b\u3093\u3002\u4e00\u89a7\u3067\u306f\u5168\u5165\u529b\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u66f8\u304d\u8fbc\u307f\u307e\u3059\u304c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u969c\u5bb3\u6642\u306e\u4e00\u62ec\u53d6\u308a\u6d88\u3057\u306f\u884c\u3044\u307e\u305b\u3093\u3002\u8907\u5408\u5024\u306e\u30e1\u30bf\u306f\u3053\u306e\u753b\u9762\u306e\u7de8\u96c6\u5bfe\u8c61\u5916\u3067\u3059\u30021\u6295\u7a3f\u306b\u3064\u304dprice\u30e1\u30bf1\u4ef6\u3092\u524d\u63d0\u3068\u3059\u308b\u4f8b\u3067\u3059\u3002\u540c\u540d\u30e1\u30bf\u304c\u8907\u6570\u3042\u308b\u3068\u66f4\u65b0\u30fb\u524a\u9664\u304c\u8907\u6570\u884c\u3078\u4f5c\u7528\u3059\u308b\u305f\u3081\u3001\u305d\u306e\u69cb\u6210\u3067\u306f\u4f7f\u308f\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092functions.php\u306b\u8a18\u8f09\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"is-style-icon_pen wp-block-paragraph\">Code Snippets\u3092\u4f7f\u3046\u5834\u5408\u3082\u3001\u691c\u8a3c\u74b0\u5883\u3067\u78ba\u8a8d\u3057\u3066\u304b\u3089\u6709\u52b9\u306b\u3057\u307e\u3059\u3002\u30d7\u30e9\u30b0\u30a4\u30f3\u3078\u767b\u9332\u3059\u308b\u3060\u3051\u3067\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u3084\u30c7\u30fc\u30bf\u306e\u8aa4\u66f4\u65b0\u3092\u9632\u3052\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ab\u30c6\u30b4\u30ea\u30fc\u3068\u30bf\u30b0\u306e\u7d5e\u308a\u8fbc\u307f\u3092\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002\u4e21\u65b9\u6307\u5b9a\u3059\u308b\u3068\u4e21\u65b9\u306b\u4e00\u81f4\u3059\u308b\u6295\u7a3f\u304c\u5bfe\u8c61\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u540d\u79f0\u306f\u597d\u304d\u306b\u5909\u66f4\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u306b\u306f\u3001\u753b\u9762\u8868\u793a\u5f8c\u306e\u4ed6\u30e6\u30fc\u30b6\u30fc\u306b\u3088\u308b\u5909\u66f4\u3092\u691c\u77e5\u3059\u308b\u6a5f\u80fd\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u4fdd\u5b58\u6642\u306b\u306f\u9001\u4fe1\u3057\u305f\u5168\u884c\u304c\u66f8\u304d\u8fbc\u307e\u308c\u308b\u305f\u3081\u3001\u540c\u6642\u7de8\u96c6\u3092\u907f\u3051\u3001\u4f5c\u696d\u524d\u306b\u518d\u8868\u793a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5358\u4e00\u6295\u7a3f\u753b\u9762\u3067\u306f\u4e0d\u6b63\u5165\u529b\u3092\u4fdd\u5b58\u305b\u305a\u5f93\u6765\u5024\u3092\u6b8b\u3057\u307e\u3059\u304c\u3001\u72ec\u81ea\u306e\u30a8\u30e9\u30fc\u901a\u77e5\u306f\u51fa\u3057\u307e\u305b\u3093\u3002\u4fdd\u5b58\u5f8c\u306f\u5024\u3092\u518d\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>add_action(&#39;admin_menu&#39;, function () {\n    add_menu_page(\n        &#39;\u4fa1\u683c\u4e00\u89a7&#39;,\n        &#39;\u4fa1\u683c\u4e00\u89a7&#39;,\n        &#39;manage_options&#39;,\n        &#39;custom-price-list&#39;,\n        &#39;render_custom_price_list&#39;,\n        &#39;dashicons-money-alt&#39;,\n        20\n    );\n});\n\nfunction render_custom_price_list()\n{\n    if (!current_user_can(&#39;manage_options&#39;)) {\n        wp_die(&#39;\u3053\u306e\u753b\u9762\u3092\u8868\u793a\u3059\u308b\u6a29\u9650\u304c\u3042\u308a\u307e\u305b\u3093\u3002&#39;);\n    }\n    \/\/ \u30ab\u30c6\u30b4\u30ea\u30fc\u3068\u30bf\u30b0\u306e\u53d6\u5f97\n    $categories = get_terms([&#39;taxonomy&#39; =&gt; &#39;category&#39;, &#39;hide_empty&#39; =&gt; false]);\n    $tags = get_terms([&#39;taxonomy&#39; =&gt; &#39;post_tag&#39;, &#39;hide_empty&#39; =&gt; false]);\n\n    \/\/ \u9078\u629e\u3055\u308c\u305fID\n    if (is_wp_error($categories) || is_wp_error($tags)) {\n        echo &#39;&lt;div class=&quot;notice notice-error&quot;&gt;&lt;p&gt;\u5206\u985e\u3092\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002&lt;\/p&gt;&lt;\/div&gt;&#39;;\n        return;\n    }\n    $selected_cat = isset($_GET[&#39;cat_id&#39;]) &amp;&amp; is_string($_GET[&#39;cat_id&#39;]) ? absint(wp_unslash($_GET[&#39;cat_id&#39;])) : 0;\n    $selected_tag = isset($_GET[&#39;tag_id&#39;]) &amp;&amp; is_string($_GET[&#39;tag_id&#39;]) ? absint(wp_unslash($_GET[&#39;tag_id&#39;])) : 0;\n\n    \/\/ \u6295\u7a3f\u3092\u53d6\u5f97\n    $args = [\n        &#39;post_type&#39; =&gt; &#39;post&#39;,\n        &#39;posts_per_page&#39; =&gt; 100,\n        &#39;post_status&#39; =&gt; &#39;publish&#39;,\n        &#39;tax_query&#39; =&gt; [],\n    ];\n\n    if ($selected_cat) {\n        $args[&#39;tax_query&#39;][] = [\n            &#39;taxonomy&#39; =&gt; &#39;category&#39;,\n            &#39;field&#39; =&gt; &#39;term_id&#39;,\n            &#39;terms&#39; =&gt; $selected_cat,\n        ];\n    }\n\n    if ($selected_tag) {\n        $args[&#39;tax_query&#39;][] = [\n            &#39;taxonomy&#39; =&gt; &#39;post_tag&#39;,\n            &#39;field&#39; =&gt; &#39;term_id&#39;,\n            &#39;terms&#39; =&gt; $selected_tag,\n        ];\n    }\n\n    if (count($args[&#39;tax_query&#39;]) &gt; 1) {\n        $args[&#39;tax_query&#39;][&#39;relation&#39;] = &#39;AND&#39;; \/\/ \u4e21\u65b9\u4e00\u81f4\u3057\u305f\u6295\u7a3f\u306b\u9650\u5b9a\n    }\n\n    $posts = get_posts($args);\n\n    \/\/ \u4fdd\u5b58\u51e6\u7406\n    $posts = array_values(array_filter($posts, function ($post) {\n        return current_user_can(&#39;edit_post&#39;, $post-&gt;ID);\n    }));\n    if (isset($_POST[&#39;custom_price_save&#39;])) {\n        $result = waza_custom_price_bulk_save($posts);\n        if (is_wp_error($result)) {\n            echo &#39;&lt;div class=&quot;notice notice-error&quot;&gt;&lt;p&gt;&#39; . esc_html($result-&gt;get_error_message()) . &#39;&lt;\/p&gt;&lt;\/div&gt;&#39;;\n        } else {\n            echo &#39;&lt;div class=&quot;notice notice-success&quot;&gt;&lt;p&gt;&#39; . esc_html((string) $result) . &#39;\u4ef6\u306e\u4fa1\u683c\u3092\u4fdd\u5b58\u3057\u307e\u3057\u305f\u3002&lt;\/p&gt;&lt;\/div&gt;&#39;;\n        }\n    }\n\n    echo &#39;&lt;div class=&quot;wrap&quot;&gt;&#39;;\n    echo &#39;&lt;h1&gt;\u6295\u7a3f\u306e\u4fa1\u683c\u4e00\u89a7&lt;\/h1&gt;&#39;;\n\n    \/\/ \u25bc\u7d5e\u308a\u8fbc\u307f\u30d5\u30a9\u30fc\u30e0\uff08\u30ab\u30c6\u30b4\u30ea + \u30bf\u30b0\uff09\n    echo &#39;&lt;form method=&quot;get&quot; style=&quot;margin-bottom: 1em;&quot;&gt;&#39;;\n    echo &#39;&lt;input type=&quot;hidden&quot; name=&quot;page&quot; value=&quot;custom-price-list&quot;&gt;&#39;;\n\n    echo &#39;&lt;label for=&quot;cat_id&quot;&gt;\u30ab\u30c6\u30b4\u30ea\u30fc\uff1a&lt;\/label&gt;&#39;;\n    echo &#39;&lt;select name=&quot;cat_id&quot; id=&quot;cat_id&quot;&gt;&#39;;\n    echo &#39;&lt;option value=&quot;0&quot;&gt;\u3059\u3079\u3066&lt;\/option&gt;&#39;;\n    foreach ($categories as $cat) {\n        $selected = selected($selected_cat, $cat-&gt;term_id, false);\n        echo &#39;&lt;option value=&quot;&#39; . esc_attr((string) $cat-&gt;term_id) . &#39;&quot; &#39; . $selected . &#39;&gt;&#39; . esc_html($cat-&gt;name) . &#39;&lt;\/option&gt;&#39;;\n    }\n    echo &#39;&lt;\/select&gt;\u3000&#39;;\n\n    echo &#39;&lt;label for=&quot;tag_id&quot;&gt;\u30bf\u30b0\uff1a&lt;\/label&gt;&#39;;\n    echo &#39;&lt;select name=&quot;tag_id&quot; id=&quot;tag_id&quot;&gt;&#39;;\n    echo &#39;&lt;option value=&quot;0&quot;&gt;\u3059\u3079\u3066&lt;\/option&gt;&#39;;\n    foreach ($tags as $tag) {\n        $selected = selected($selected_tag, $tag-&gt;term_id, false);\n        echo &#39;&lt;option value=&quot;&#39; . esc_attr((string) $tag-&gt;term_id) . &#39;&quot; &#39; . $selected . &#39;&gt;&#39; . esc_html($tag-&gt;name) . &#39;&lt;\/option&gt;&#39;;\n    }\n    echo &#39;&lt;\/select&gt;\u3000&#39;;\n\n    echo &#39;&lt;button type=&quot;submit&quot; class=&quot;button&quot;&gt;\u7d5e\u308a\u8fbc\u307f&lt;\/button&gt;&#39;;\n    echo &#39;&lt;\/form&gt;&#39;;\n\n    \/\/ \u25bc\u4fa1\u683c\u7de8\u96c6\u30c6\u30fc\u30d6\u30eb\n    echo &#39;&lt;form method=&quot;post&quot;&gt;&#39;;\n    wp_nonce_field(&#39;save_custom_price_list&#39;, &#39;custom_price_list_nonce&#39;);\n    echo &#39;&lt;table class=&quot;widefat fixed striped&quot;&gt;&#39;;\n    echo &#39;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;max-width:400px;width:400px;&quot;&gt;\u8a18\u4e8b\u30bf\u30a4\u30c8\u30eb&lt;\/th&gt;&lt;th&gt;\u4fa1\u683c&lt;\/th&gt;&lt;\/tr&gt;&lt;\/thead&gt;&lt;tbody&gt;&#39;;\n\n    foreach ($posts as $post) {\n        $price = get_post_meta($post-&gt;ID, &#39;price&#39;, true);\n        if (!is_scalar($price)) {\n            echo &#39;&lt;tr&gt;&lt;td&gt;&#39; . esc_html($post-&gt;post_title) . &#39;&lt;\/td&gt;&lt;td&gt;\u8907\u5408\u5024\u306e\u305f\u3081\u7de8\u96c6\u5bfe\u8c61\u5916&lt;\/td&gt;&lt;\/tr&gt;&#39;;\n            continue;\n        }\n        echo &#39;&lt;tr&gt;&#39;;\n        echo &#39;&lt;td style=&quot;max-width:400px;width:400px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;&quot;&gt;&#39;;\n        echo &#39;&lt;a href=&quot;&#39; . esc_url(get_edit_post_link($post-&gt;ID, &#39;raw&#39;)) . &#39;&quot;&gt;&#39; . esc_html($post-&gt;post_title) . &#39;&lt;\/a&gt;&#39;;\n        echo &#39;&lt;\/td&gt;&#39;;\n        echo &#39;&lt;td&gt;&lt;input type=&quot;number&quot; min=&quot;0&quot; step=&quot;1&quot; name=&quot;price[&#39; . $post-&gt;ID . &#39;]&quot; value=&quot;&#39; . esc_attr($price) . &#39;&quot; \/&gt;&lt;\/td&gt;&#39;;\n        echo &#39;&lt;\/tr&gt;&#39;;\n    }\n\n    echo &#39;&lt;\/tbody&gt;&lt;\/table&gt;&#39;;\n    submit_button(&#39;\u4fa1\u683c\u3092\u4fdd\u5b58\u3059\u308b&#39;, &#39;primary&#39;, &#39;custom_price_save&#39;);\n    echo &#39;&lt;\/form&gt;&#39;;\n    echo &#39;&lt;\/div&gt;&#39;;\n}\n<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3042\u3068\u306f\u7ba1\u7406\u753b\u9762\u304b\u3089\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"812\" height=\"474\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_19h06_26-1-812x474.png\" alt=\"\u30b3\u30fc\u30c9\u8ffd\u52a0\u5f8c\u306b\u7ba1\u7406\u753b\u9762\u304b\u3089\u78ba\u8a8d\u3067\u304d\u308b\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u4e00\u89a7\u30fb\u7de8\u96c6\u6a5f\u80fd\u306e\u8868\u793a\u4f8b\u3002\" class=\"wp-image-27087\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_19h06_26-1-812x474.png 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_19h06_26-1-382x223.png 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_19h06_26-1-768x448.png 768w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_19h06_26-1.png 845w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b7\u30f3\u30d7\u30eb\u7248<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u7d5e\u308a\u8fbc\u307f\u306a\u3057\u306e\u30b7\u30f3\u30d7\u30eb\u7248\u3082\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"812\" height=\"533\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_19h10_54-812x533.png\" alt=\"\u7d5e\u308a\u8fbc\u307f\u6a5f\u80fd\u3092\u7701\u3044\u305f\u30b7\u30f3\u30d7\u30eb\u7248\u306e\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u4e00\u89a7\u30fb\u7de8\u96c6\u753b\u9762\u4f8b\u3002\" class=\"wp-image-27088\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_19h10_54-812x533.png 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_19h10_54-382x251.png 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_19h10_54-768x504.png 768w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2025-05-31_19h10_54.png 924w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>add_action(&#39;admin_menu&#39;, function () {\n    add_menu_page(\n        &#39;\u4fa1\u683c\u4e00\u89a7&#39;,\n        &#39;\u4fa1\u683c\u4e00\u89a7&#39;,\n        &#39;manage_options&#39;,\n        &#39;custom-price-list&#39;,\n        &#39;render_custom_price_list&#39;,\n        &#39;dashicons-money-alt&#39;,\n        20\n    );\n});\n\nfunction render_custom_price_list()\n{\n    if (!current_user_can(&#39;manage_options&#39;)) {\n        wp_die(&#39;\u3053\u306e\u753b\u9762\u3092\u8868\u793a\u3059\u308b\u6a29\u9650\u304c\u3042\u308a\u307e\u305b\u3093\u3002&#39;);\n    }\n    \/\/ \u6295\u7a3f\u3092\u53d6\u5f97\uff08100\u4ef6\u307e\u3067\u8868\u793a\uff09\n    $posts = get_posts([\n        &#39;post_type&#39; =&gt; &#39;post&#39;,\n        &#39;posts_per_page&#39; =&gt; 100,\n        &#39;post_status&#39; =&gt; &#39;publish&#39;,\n    ]);\n\n    \/\/ \u4fdd\u5b58\u51e6\u7406\n    $posts = array_values(array_filter($posts, function ($post) {\n        return current_user_can(&#39;edit_post&#39;, $post-&gt;ID);\n    }));\n    if (isset($_POST[&#39;custom_price_save&#39;])) {\n        $result = waza_custom_price_bulk_save($posts);\n        if (is_wp_error($result)) {\n            echo &#39;&lt;div class=&quot;notice notice-error&quot;&gt;&lt;p&gt;&#39; . esc_html($result-&gt;get_error_message()) . &#39;&lt;\/p&gt;&lt;\/div&gt;&#39;;\n        } else {\n            echo &#39;&lt;div class=&quot;notice notice-success&quot;&gt;&lt;p&gt;&#39; . esc_html((string) $result) . &#39;\u4ef6\u306e\u4fa1\u683c\u3092\u4fdd\u5b58\u3057\u307e\u3057\u305f\u3002&lt;\/p&gt;&lt;\/div&gt;&#39;;\n        }\n    }\n\n    echo &#39;&lt;div class=&quot;wrap&quot;&gt;&#39;;\n    echo &#39;&lt;h1&gt;\u6295\u7a3f\u306e\u4fa1\u683c\u4e00\u89a7&lt;\/h1&gt;&#39;;\n    echo &#39;&lt;form method=&quot;post&quot;&gt;&#39;;\n    wp_nonce_field(&#39;save_custom_price_list&#39;, &#39;custom_price_list_nonce&#39;);\n    echo &#39;&lt;table class=&quot;widefat fixed striped&quot;&gt;&#39;;\n    echo &#39;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;\u8a18\u4e8b\u30bf\u30a4\u30c8\u30eb&lt;\/th&gt;&lt;th&gt;\u4fa1\u683c&lt;\/th&gt;&lt;\/tr&gt;&lt;\/thead&gt;&lt;tbody&gt;&#39;;\n\n    foreach ($posts as $post) {\n        $price = get_post_meta($post-&gt;ID, &#39;price&#39;, true);\n        if (!is_scalar($price)) {\n            echo &#39;&lt;tr&gt;&lt;td&gt;&#39; . esc_html($post-&gt;post_title) . &#39;&lt;\/td&gt;&lt;td&gt;\u8907\u5408\u5024\u306e\u305f\u3081\u7de8\u96c6\u5bfe\u8c61\u5916&lt;\/td&gt;&lt;\/tr&gt;&#39;;\n            continue;\n        }\n        echo &#39;&lt;tr&gt;&#39;;\n        echo &#39;&lt;td&gt;&lt;a href=&quot;&#39; . esc_url(get_edit_post_link($post-&gt;ID, &#39;raw&#39;)) . &#39;&quot;&gt;&#39; . esc_html($post-&gt;post_title) . &#39;&lt;\/a&gt;&lt;\/td&gt;&#39;;\n        echo &#39;&lt;td&gt;&lt;input type=&quot;number&quot; min=&quot;0&quot; step=&quot;1&quot; name=&quot;price[&#39; . $post-&gt;ID . &#39;]&quot; value=&quot;&#39; . esc_attr($price) . &#39;&quot; \/&gt;&lt;\/td&gt;&#39;;\n        echo &#39;&lt;\/tr&gt;&#39;;\n    }\n\n    echo &#39;&lt;\/tbody&gt;&lt;\/table&gt;&#39;;\n    submit_button(&#39;\u4fa1\u683c\u3092\u4fdd\u5b58\u3059\u308b&#39;, &#39;primary&#39;, &#39;custom_price_save&#39;);\n    echo &#39;&lt;\/form&gt;&#39;;\n    echo &#39;&lt;\/div&gt;&#39;;\n}\n<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308b\u30b3\u30fc\u30c9\u306f\u3001GitHub\u306e<a href=\"https:\/\/github.com\/MOTOKI-LLC\/WAZA-code\/tree\/main\/custom-field-editor\">MOTOKI-LLC\/WAZA-code<\/a>\u306b\u3082\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306e\u4fee\u6b63\u306f\u516c\u958b\u30b3\u30fc\u30c9\u3068WordPress\u516c\u5f0f\u8cc7\u6599\u306e\u9759\u7684\u78ba\u8a8d\u306b\u57fa\u3065\u304d\u307e\u3059\u3002\u4fee\u6b63\u5f8c\u30b3\u30fc\u30c9\u306e\u5b9f\u6a5f\u4fdd\u5b58\u3001\u30a8\u30c7\u30a3\u30bf\u30fc\u5225\u306e\u914d\u7f6e\u3001\u6a29\u9650\u3054\u3068\u306e\u64cd\u4f5c\u3001\u4f75\u7528\u30d7\u30e9\u30b0\u30a4\u30f3\u3001\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u306f\u672a\u691c\u8a3c\u3067\u3059\u3002\u65e2\u5b58\u753b\u50cf\u306f\u914d\u7f6e\u4f8b\u3067\u3042\u308a\u3001\u4fee\u6b63\u5f8c\u30b3\u30fc\u30c9\u306e\u52d5\u4f5c\u78ba\u8a8d\u753b\u50cf\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002GitHub\u5074\u306e\u540c\u6642\u66f4\u65b0\u3082\u78ba\u8a8d\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u505c\u6b62\u3059\u308b\u3068\u304d\u306f\u8ffd\u52a0\u3057\u305f\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u7121\u52b9\u5316\u3059\u308b\u304b\u3001\u5b50\u30c6\u30fc\u30de\u3078\u8ffd\u52a0\u3057\u305f\u8a72\u5f53\u30b3\u30fc\u30c9\u3092\u53d6\u308a\u9664\u304d\u307e\u3059\u3002\u505c\u6b62\u3060\u3051\u3067\u4fdd\u5b58\u6e08\u307fprice\u30e1\u30bf\u306f\u6d88\u3048\u307e\u305b\u3093\u3002\u4fa1\u683c\u3092\u4e00\u62ec\u524a\u9664\u3059\u308b\u30b3\u30fc\u30c9\u306f\u8ffd\u52a0\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4fa1\u683c\u4e00\u89a7\u3068\u4fa1\u683c\u30e1\u30bf\u30dc\u30c3\u30af\u30b9\u306eLocal\u8868\u793a\u4f8b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">2026\u5e7410\u670813\u65e5\u306b\u3001\u65b0\u898fLocal\u74b0\u5883\uff08WordPress 7.1.3\u3001PHP 8.1.23\u3001Twenty Twenty-Five 1.5\uff09\u3078\u3001\u3053\u306e\u30da\u30fc\u30b8\u306b\u63b2\u8f09\u4e2d\u306e\u5171\u901a\u51e6\u7406\u3068\u7d5e\u308a\u8fbc\u307f\u4ed8\u304d\u4e00\u89a7\u306e\u30b3\u30fc\u30c9\u3060\u3051\u3092\u8ffd\u52a0\u3057\u3066\u64ae\u5f71\u3057\u307e\u3057\u305f\u3002\u30b7\u30f3\u30d7\u30eb\u7248\u306f\u540c\u6642\u306b\u8ffd\u52a0\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u6295\u7a3f\u30bf\u30a4\u30c8\u30eb\u30fb\u4fa1\u683c\u306f\u3059\u3079\u3066\u64ae\u5f71\u7528\u306e\u67b6\u7a7a\u30c7\u30fc\u30bf\u3067\u3059\u3002\u672c\u756a\u30b5\u30a4\u30c8\u3078\u306e\u30b3\u30fc\u30c9\u5c0e\u5165\u3084\u4fa1\u683c\u5909\u66f4\u306f\u884c\u3063\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7ba1\u7406\u30e1\u30cb\u30e5\u30fc\u306e\u300c\u4fa1\u683c\u4e00\u89a7\u300d\u306b\u306f\u30ab\u30c6\u30b4\u30ea\u30fc\u30fb\u30bf\u30b0\u306e\u9078\u629e\u6b04\u3001\u8a18\u4e8b\u30bf\u30a4\u30c8\u30eb\u30fb\u4fa1\u683c\u306e\u5217\u3001\u4fa1\u683c\u3092\u4fdd\u5b58\u3059\u308b\u30dc\u30bf\u30f3\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002\u6295\u7a3f\u306e\u7de8\u96c6\u753b\u9762\u3067\u306f\u53f3\u5074\u306b\u300c\u4fa1\u683c\u300d\u30e1\u30bf\u30dc\u30c3\u30af\u30b9\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002\u914d\u7f6e\u306f\u3053\u306e\u30a8\u30c7\u30a3\u30bf\u30fc\u30fb\u30c6\u30fc\u30de\u3067\u306e\u4f8b\u3067\u3001\u3059\u3079\u3066\u306e\u69cb\u6210\u3067\u540c\u3058\u4f4d\u7f6e\u306b\u306a\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306f\u753b\u9762\u306e\u8868\u793a\u78ba\u8a8d\u3068\u64ae\u5f71\u306e\u307f\u3067\u3059\u3002\u7d5e\u308a\u8fbc\u307f\u30fb\u4fa1\u683c\u5165\u529b\u30fb\u4fdd\u5b58\u30fb\u6295\u7a3f\u66f4\u65b0\u306f\u64cd\u4f5c\u3057\u3066\u3044\u307e\u305b\u3093\u30020\u3084\u7a7a\u6b04\u3092\u542b\u3080\u4fa1\u683c\u306f\u64ae\u5f71\u524d\u306b\u7528\u610f\u3057\u305f\u898b\u672c\u3067\u3042\u308a\u3001\u753b\u9762\u304b\u3089\u306e\u4fdd\u5b58\u3084\u524a\u9664\u304c\u6210\u529f\u3057\u305f\u8a18\u9332\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u6a29\u9650\u5225\u306e\u64cd\u4f5c\u30fb\u8907\u5408\u5024\u30fb\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u30fb\u6c7a\u6e08\u3068\u306e\u9023\u643a\u306f\u672a\u691c\u8a3c\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/27082-price-list-local.jpg\"><img decoding=\"async\" width=\"924\" height=\"504\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/27082-price-list-local.jpg\" alt=\"\u67b6\u7a7a\u6295\u7a3f\u3092\u8868\u793a\u3057\u305f\u4fa1\u683c\u4e00\u89a7\u3002\u30ab\u30c6\u30b4\u30ea\u30fc\u30fb\u30bf\u30b0\u3001\u8a18\u4e8b\u30bf\u30a4\u30c8\u30eb\u30fb\u4fa1\u683c\u306e\u5217\u3001\u4fdd\u5b58\u30dc\u30bf\u30f3\u306e\u914d\u7f6e\u4f8b\u3002\" class=\"wp-image-31812\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/27082-price-list-local.jpg 924w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/27082-price-list-local-382x208.jpg 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/27082-price-list-local-812x443.jpg 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/27082-price-list-local-768x419.jpg 768w\" sizes=\"(max-width: 924px) 100vw, 924px\" \/><\/a><figcaption class=\"wp-element-caption\">\u67b6\u7a7a\u6295\u7a3f\u3092\u8868\u793a\u3057\u305f\u4fa1\u683c\u4e00\u89a7\u3002\u30ab\u30c6\u30b4\u30ea\u30fc\u30fb\u30bf\u30b0\u3001\u8a18\u4e8b\u30bf\u30a4\u30c8\u30eb\u30fb\u4fa1\u683c\u306e\u5217\u3001\u4fdd\u5b58\u30dc\u30bf\u30f3\u306e\u914d\u7f6e\u4f8b\u3002 2026\u5e7410\u670813\u65e5Local\u78ba\u8a8d\u3002\u753b\u50cf\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u539f\u5bf8\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/27082-price-box-local.jpg\"><img decoding=\"async\" width=\"924\" height=\"866\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/27082-price-box-local.jpg\" alt=\"\u67b6\u7a7a\u6295\u7a3f\u306e\u7de8\u96c6\u753b\u9762\u3002\u53f3\u5074\u306e\u4fa1\u683c\u30e1\u30bf\u30dc\u30c3\u30af\u30b9\u306f\u8868\u793a\u306e\u307f\u3092\u78ba\u8a8d\u3057\u3001\u4fdd\u5b58\u3057\u3066\u3044\u307e\u305b\u3093\u3002\" class=\"wp-image-31813\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/27082-price-box-local.jpg 924w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/27082-price-box-local-382x358.jpg 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/27082-price-box-local-812x761.jpg 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/27082-price-box-local-768x720.jpg 768w\" sizes=\"(max-width: 924px) 100vw, 924px\" \/><\/a><figcaption class=\"wp-element-caption\">\u67b6\u7a7a\u6295\u7a3f\u306e\u7de8\u96c6\u753b\u9762\u3002\u53f3\u5074\u306e\u4fa1\u683c\u30e1\u30bf\u30dc\u30c3\u30af\u30b9\u306f\u8868\u793a\u306e\u307f\u3092\u78ba\u8a8d\u3057\u3001\u4fdd\u5b58\u3057\u3066\u3044\u307e\u305b\u3093\u3002 2026\u5e7410\u670813\u65e5Local\u78ba\u8a8d\u3002\u753b\u50cf\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u539f\u5bf8\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/figcaption><\/figure>\n\n\n","protected":false},"excerpt":{"rendered":"<p>\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u30c7\u30fc\u30bf\u3092\u4e00\u89a7\u3059\u308b\u3001\u307e\u305f\u306f\u5165\u529b\u3059\u308b\u969b\u306b\u307e\u3068\u3081\u3066\u3084\u3063\u3066\u3057\u307e\u3044\u305f\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u3053\u3067\u306f\u6295\u7a3f\u306b\u72ec\u81ea\u306eprice\u30e1\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u4e00\u89a7\u753b\u9762\u3092\u4f5c\u308a\u307e\u3059\u3002\u6709\u6599\u8a18\u4e8b\u30b5\u30fc\u30d3\u30b9\u3084\u6c7a\u6e08\u30b7\u30b9\u30c6\u30e0\u306e\u8ca9\u58f2\u4fa1\u683c\u3092\u5909\u66f4\u3059\u308b\u6a5f\u80fd\u3067\u306f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":27089,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","book_review_data":"","footnotes":"","ssp_meta_title":"WordPress\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u4e00\u89a7\u30fb\u7de8\u96c6\u6a5f\u80fd\u306e\u4f5c\u6210","ssp_meta_description":"functions.php\u306b\u30b3\u30fc\u30c9\u3092\u8ffd\u8a18\u3057\u3001\u7ba1\u7406\u753b\u9762\u306b\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u4e00\u62ec\u7de8\u96c6\u30fb\u4e00\u89a7\u30e1\u30cb\u30e5\u30fc\u3092\u4f5c\u6210\u3059\u308b\u624b\u9806\u3092\u89e3\u8aac\u3002\u4fa1\u683c\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u4f8b\u306b\u3001\u30ab\u30c6\u30b4\u30ea\u30fc\u30fb\u30bf\u30b0\u3067\u306e\u7d5e\u308a\u8fbc\u307f\u6a5f\u80fd\u4ed8\u304d\u30b3\u30fc\u30c9\u3068\u3001\u6700\u5927100\u4ef6\u8868\u793a\u306e\u30b7\u30f3\u30d7\u30eb\u7248\u30b3\u30fc\u30c9\u3092\u63b2\u8f09\u3057\u3066\u3044\u307e\u3059\u3002"},"categories":[91],"tags":[],"area":[],"class_list":["post-27082","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-customize"],"_links":{"self":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/27082","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=27082"}],"version-history":[{"count":8,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/27082\/revisions"}],"predecessor-version":[{"id":32089,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/27082\/revisions\/32089"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media\/27089"}],"wp:attachment":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=27082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=27082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=27082"},{"taxonomy":"area","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/area?post=27082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}