{"id":16371,"date":"2022-03-06T12:44:35","date_gmt":"2022-03-06T03:44:35","guid":{"rendered":"https:\/\/www.cg-method.com\/side-job\/?p=16371"},"modified":"2026-10-04T23:27:01","modified_gmt":"2026-10-04T14:27:01","slug":"taxonomy-import","status":"publish","type":"post","link":"https:\/\/motoki-design.co.jp\/wordpress\/taxonomy-import\/","title":{"rendered":"WordPress\u2502\u30ab\u30c6\u30b4\u30ea\u30fc\u30fb\u30bf\u30b0\u3092\u4e00\u62ec\u767b\u9332\u3059\u308b\u65b9\u6cd5\uff5cWP-CLI\u3067\u78ba\u8a8d\u3057\u3066\u304b\u3089\u8ffd\u52a0"},"content":{"rendered":"<p class=\"wp-block-paragraph\">\u30ab\u30c6\u30b4\u30ea\u30fc\u3084\u30bf\u30b0\u3092\u4e00\u62ec\u767b\u9332\u3059\u308b\u5834\u5408\u306f\u3001\u540d\u524d\u30fb\u30b9\u30e9\u30c3\u30b0\u30fb\u89aa\u30ab\u30c6\u30b4\u30ea\u30fc\u3092\u4e00\u89a7\u306b\u3057\u3066\u304b\u3089\u767b\u9332\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001WP-CLI\u3092\u5229\u7528\u3067\u304d\u308b\u7ba1\u7406\u8005\u5411\u3051\u306b\u3001\u8ffd\u52a0\u4e88\u5b9a\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u767b\u9332\u3059\u308bPHP\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u65e2\u5b58\u306e\u5206\u985e\u3092\u4e00\u62ec\u4e0a\u66f8\u304d\u3059\u308b\u7528\u9014\u306b\u306f\u4f7f\u3044\u307e\u305b\u3093\u3002<\/p><h2 class=\"wp-block-heading\">\u5b9f\u884c\u524d\u306e\u6e96\u5099<\/h2><p class=\"wp-block-paragraph\">\u5bfe\u8c61\u30b5\u30a4\u30c8\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3001\u5fa9\u5143\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u307e\u305a\u8907\u88fd\u3057\u305f\u691c\u8a3c\u30b5\u30a4\u30c8\u3067\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002WP-CLI\u304c\u306a\u3044\u5834\u5408\u306f\u3001\u3053\u306e\u30b3\u30fc\u30c9\u3092functions.php\u3084\u6295\u7a3f\u672c\u6587\u3078\u8cbc\u3089\u305a\u3001\u7ba1\u7406\u753b\u9762\u306e\u30ab\u30c6\u30b4\u30ea\u30fc\u30fb\u30bf\u30b0\u753b\u9762\u3067\u767b\u9332\u3057\u307e\u3059\u3002\u65e7\u7248WP Taxonomy Import\u306eZIP\u5c0e\u5165\u624b\u9806\u306f\u3001\u4eca\u56de\u306e\u691c\u8a3c\u5bfe\u8c61\u3068\u3057\u3066\u7dad\u6301\u3067\u304d\u306a\u3044\u305f\u3081\u63b2\u8f09\u3092\u7d42\u4e86\u3057\u307e\u3057\u305f\u3002<\/p><h2 class=\"wp-block-heading\">\u767b\u9332\u30c7\u30fc\u30bf\u3068PHP\u30d5\u30a1\u30a4\u30eb<\/h2><p class=\"wp-block-paragraph\">\u6b21\u306e\u5185\u5bb9\u3092UTF-8\u30fbBOM\u306a\u3057\u306e <code>waza-terms.php<\/code> \u3068\u3057\u3066\u3001Web\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5916\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002\u672b\u5c3e\u306erows\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002\u5404\u884c\u306f\u300c\u540d\u524d\u3001\u534a\u89d2\u82f1\u5c0f\u6587\u5b57\u30fb\u6570\u5b57\u30fb\u30cf\u30a4\u30d5\u30f3\u306e\u30b9\u30e9\u30c3\u30b0\u3001\u89aa\u306e\u30b9\u30e9\u30c3\u30b0\u300d\u3067\u3059\u3002\u89aa\u306f\u5b50\u3088\u308a\u5148\u306b\u8a18\u8f09\u3057\u3001\u89aa\u306a\u3057\u306f\u7a7a\u6587\u5b57\u306b\u3057\u307e\u3059\u3002\u540d\u524d\u306e\u524d\u5f8c\u306e\u7a7a\u767d\u3084\u3001\u4fdd\u5b58\u6642\u306b\u53d6\u308a\u9664\u304b\u308c\u308b\u30b9\u30e9\u30c3\u30b0\u306e\u524d\u5f8c\u306e\u30cf\u30a4\u30d5\u30f3\u306f\u5165\u529b\u30a8\u30e9\u30fc\u3068\u3057\u3066\u767b\u9332\u524d\u306b\u6b62\u3081\u307e\u3059\u3002WordPress\u306b\u4fdd\u5b58\u3057\u305f\u5024\u304c\u5165\u529b\u8868\u3068\u98df\u3044\u9055\u3046\u3068\u518d\u5b9f\u884c\u306e\u7167\u5408\u304c\u3067\u304d\u306a\u3044\u305f\u3081\u3067\u3059\u3002\u30bf\u30b0\u306e\u5834\u5408\u306f\u3059\u3079\u3066\u89aa\u306a\u3057\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p><div class=\"hcb_wrap\"><pre class=\"prism lang-php\" data-lang=\"php\"><code>&lt;?php\n\/\/ wp eval-file waza-terms.php category dry-run\n\/\/ wp eval-file waza-terms.php category apply\nfunction waza_import_terms(array $rows, string $taxonomy, bool $apply = false): array {\n    if (!in_array($taxonomy, array(&#x27;category&#x27;, &#x27;post_tag&#x27;), true)) throw new RuntimeException(&#x27;category \/ post_tag \u306e\u307f\u5bfe\u5fdc&#x27;);\n    $known = array(); $plan = array();\n    foreach ($rows as $row) {\n        if (!is_array($row) || array_keys($row) !== array(0, 1, 2)\n            || count(array_filter($row, &#x27;is_string&#x27;)) !== 3) {\n            throw new RuntimeException(&#x27;\u5404\u884c\u306f\u540d\u524d\u30fb\u30b9\u30e9\u30c3\u30b0\u30fb\u89aa\u30b9\u30e9\u30c3\u30b0\u306e3\u3064\u306e\u6587\u5b57\u5217\u306b\u3057\u3066\u304f\u3060\u3055\u3044&#x27;);\n        }\n        list($name, $slug, $parent_slug) = $row;\n        if ($name !== trim($name) || sanitize_title($slug) !== $slug\n            || ($parent_slug !== &#x27;&#x27; &amp;&amp; sanitize_title($parent_slug) !== $parent_slug)) {\n            throw new RuntimeException(&#x27;\u524d\u5f8c\u306e\u7a7a\u767d\u30fb\u30cf\u30a4\u30d5\u30f3\u306a\u3069\u3001\u4fdd\u5b58\u6642\u306b\u5909\u308f\u308b\u5165\u529b\u3092\u4fee\u6b63: &#x27; . $slug);\n        }\n        if (!$name || !preg_match(&#x27;\/^[a-z0-9-]+$\/D&#x27;, $slug) || isset($known[$slug])) throw new RuntimeException(&#x27;\u540d\u524d\u30fb\u30b9\u30e9\u30c3\u30b0\u30fb\u91cd\u8907\u3092\u78ba\u8a8d: &#x27; . $slug);\n        if ($taxonomy === &#x27;post_tag&#x27; &amp;&amp; $parent_slug !== &#x27;&#x27;) throw new RuntimeException(&#x27;\u30bf\u30b0\u306b\u89aa\u306f\u6307\u5b9a\u3067\u304d\u307e\u305b\u3093&#x27;);\n        $parent_id = 0;\n        if ($parent_slug !== &#x27;&#x27;) {\n            if (isset($known[$parent_slug])) $parent_id = $known[$parent_slug];\n            else {\n                $parent = get_term_by(&#x27;slug&#x27;, $parent_slug, $taxonomy);\n                if (!$parent) throw new RuntimeException(&#x27;\u89aa\u3092\u5148\u306b\u8a18\u8f09: &#x27; . $parent_slug);\n                $parent_id = (int) $parent-&gt;term_id;\n            }\n        }\n        $existing = get_term_by(&#x27;slug&#x27;, $slug, $taxonomy);\n        if ($existing &amp;&amp; ($existing-&gt;name !== $name || (int) $existing-&gt;parent !== $parent_id)) throw new RuntimeException(&#x27;\u65e2\u5b58\u30c7\u30fc\u30bf\u3068\u4e0d\u4e00\u81f4: &#x27; . $slug);\n        $id = $existing ? (int) $existing-&gt;term_id : -(count($plan) + 1);\n        $known[$slug] = $id;\n        $plan[] = array(&#x27;name&#x27; =&gt; $name, &#x27;slug&#x27; =&gt; $slug, &#x27;parent_slug&#x27; =&gt; $parent_slug, &#x27;id&#x27; =&gt; $id, &#x27;action&#x27; =&gt; $existing ? &#x27;keep&#x27; : &#x27;create&#x27;);\n    }\n    if (!$apply) return $plan;\n    $resolved = array(); $result = array();\n    foreach ($plan as $item) {\n        $id = $item[&#x27;id&#x27;];\n        if ($item[&#x27;action&#x27;] === &#x27;create&#x27;) {\n            $parent_id = 0;\n            if ($item[&#x27;parent_slug&#x27;] !== &#x27;&#x27;) {\n                $parent = get_term_by(&#x27;slug&#x27;, $item[&#x27;parent_slug&#x27;], $taxonomy);\n                if (!$parent) throw new RuntimeException(&#x27;\u89aa\u304c\u6d88\u5931\u3057\u307e\u3057\u305f\u3002\u51e6\u7406\u3092\u4e2d\u6b62\u3057\u307e\u3059&#x27;);\n                $parent_id = (int) $parent-&gt;term_id;\n            }\n            \/\/ \u540c\u6642\u7de8\u96c6\u3092\u907f\u3051\u3001\u76f4\u524d\u306b\u3082\u30b9\u30e9\u30c3\u30b0\u306e\u91cd\u8907\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\n            if (get_term_by(&#x27;slug&#x27;, $item[&#x27;slug&#x27;], $taxonomy)) throw new RuntimeException(&#x27;\u5b9f\u884c\u4e2d\u306b\u65e2\u5b58\u30c7\u30fc\u30bf\u304c\u5909\u308f\u308a\u307e\u3057\u305f: &#x27; . $item[&#x27;slug&#x27;]);\n            $created = wp_insert_term($item[&#x27;name&#x27;], $taxonomy, array(&#x27;slug&#x27; =&gt; $item[&#x27;slug&#x27;], &#x27;parent&#x27; =&gt; $parent_id));\n            if (is_wp_error($created)) throw new RuntimeException($created-&gt;get_error_message());\n            $id = (int) $created[&#x27;term_id&#x27;];\n        }\n        $item[&#x27;id&#x27;] = $id; $result[] = $item;\n        echo wp_json_encode($item, JSON_UNESCAPED_UNICODE) . PHP_EOL;\n    }\n    return $result;\n}\nif (defined(&#x27;WP_CLI&#x27;) &amp;&amp; WP_CLI) {\n    $taxonomy = $args[0] ?? &#x27;category&#x27;;\n    $mode = $args[1] ?? &#x27;dry-run&#x27;;\n    if (!in_array($mode, array(&#x27;dry-run&#x27;, &#x27;apply&#x27;), true)) WP_CLI::error(&#x27;dry-run \/ apply \u3092\u6307\u5b9a&#x27;);\n    $rows = array(\n        array(&#x27;\u95a2\u6771&#x27;, &#x27;kanto&#x27;, &#x27;&#x27;),\n        array(&#x27;\u6771\u4eac&#x27;, &#x27;tokyo&#x27;, &#x27;kanto&#x27;),\n        array(&#x27;\u795e\u5948\u5ddd&#x27;, &#x27;kanagawa&#x27;, &#x27;kanto&#x27;),\n    );\n    try {\n        $result = waza_import_terms($rows, $taxonomy, $mode === &#x27;apply&#x27;);\n        if ($mode === &#x27;dry-run&#x27;) WP_CLI::line(wp_json_encode($result, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));\n    } catch (Throwable $e) { WP_CLI::error($e-&gt;getMessage()); }\n}\n<\/code><\/pre><\/div><h2 class=\"wp-block-heading\">\u78ba\u8a8d\u3057\u3066\u304b\u3089\u767b\u9332\u3059\u308b<\/h2><p class=\"wp-block-paragraph\">WordPress\u306e\u8a2d\u7f6e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002\u4e0b\u8a18\u306e\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u306f\u4fdd\u5b58\u5148\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002dry-run\u306e\u8ca0\u306eID\u306f\u672a\u4f5c\u6210\u3092\u8868\u3059\u4eee\u306e\u5024\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306f\u4fdd\u5b58\u3055\u308c\u307e\u305b\u3093\u3002create\u306f\u8ffd\u52a0\u4e88\u5b9a\u3001keep\u306f\u65e2\u5b58\u30c7\u30fc\u30bf\u306e\u7dad\u6301\u3067\u3059\u3002<\/p><div class=\"hcb_wrap\"><pre class=\"prism lang-bash\" data-lang=\"bash\"><code>wp eval-file \/private\/path\/waza-terms.php category dry-run\nwp eval-file \/private\/path\/waza-terms.php category apply &gt; terms-created.log<\/code><\/pre><\/div><p class=\"wp-block-paragraph\">\u30bf\u30b0\u306fcategory\u3092post_tag\u306b\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002\u540c\u3058\u30b9\u30e9\u30c3\u30b0\u306e\u540d\u524d\u3084\u89aa\u304c\u7570\u306a\u308b\u5834\u5408\u306f\u505c\u6b62\u3057\u307e\u3059\u3002\u540c\u540d\u30fb\u5225\u30b9\u30e9\u30c3\u30b0\u306a\u3069WordPress\u5074\u306e\u8ffd\u52a0\u691c\u67fb\u3067\u5931\u6557\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u3001dry-run\u306f\u767b\u9332\u6210\u529f\u306e\u4fdd\u8a3c\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5b9f\u884c\u4e2d\u306f\u4ed6\u306e\u7ba1\u7406\u8005\u306b\u3088\u308b\u5206\u985e\u306e\u7de8\u96c6\u3092\u6b62\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p><h2 class=\"wp-block-heading\">\u5b9f\u884c\u7d50\u679c\u306ecreate\u3068keep\u3092\u8aad\u307f\u5206\u3051\u308b<\/h2>\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u7d50\u679c<\/th><th>\u6b21\u306e\u64cd\u4f5c<\/th><\/tr><\/thead><tbody><tr><td>dry-run\u3067create<\/td><td>\u8ffd\u52a0\u4e88\u5b9a\u3002\u307e\u3060\u5206\u985e\u306f\u4f5c\u6210\u3055\u308c\u3066\u3044\u306a\u3044<\/td><\/tr><tr><td>apply\u3067create\u3068\u6b63\u306eID<\/td><td>\u65b0\u3057\u304f\u4f5c\u3089\u308c\u305f\u5206\u985e\u3002ID\u3068\u5165\u529b\u884c\u3092\u30ed\u30b0\u3078\u6b8b\u3059<\/td><\/tr><tr><td>keep<\/td><td>\u540d\u524d\u30fb\u30b9\u30e9\u30c3\u30b0\u30fb\u89aa\u304c\u65e2\u5b58\u306e\u5206\u985e\u3068\u4e00\u81f4\u3002\u4e0a\u66f8\u304d\u306f\u3057\u306a\u3044<\/td><\/tr><tr><td>\u9014\u4e2d\u3067\u30a8\u30e9\u30fc<\/td><td>\u5148\u306b\u4f5c\u3089\u308c\u305f\u5206\u985e\u306f\u6b8b\u308b\u3002\u30ed\u30b0\u3068\u518d\u5ea6\u306edry-run\u3067\u73fe\u5728\u306e\u72b6\u614b\u3092\u78ba\u8a8d<\/td><\/tr><\/tbody><\/table><\/figure>\n<p class=\"wp-block-paragraph\">\u540c\u3058\u5165\u529b\u3067\u518d\u5b9f\u884c\u3059\u308b\u3068\u3001\u524d\u56de\u4f5c\u6210\u3057\u305f\u5206\u985e\u306fkeep\u306b\u306a\u308a\u307e\u3059\u3002\u9014\u4e2d\u306e\u30a8\u30e9\u30fc\u304b\u3089\u518d\u958b\u3059\u308b\u5834\u5408\u3082\u3001\u5165\u529b\u8868\u3092\u5909\u66f4\u305b\u305a\u306bdry-run\u3067\u6b8b\u308a\u306ecreate\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089apply\u3078\u9032\u307f\u307e\u3059\u3002\u540d\u524d\u3084\u89aa\u3092\u5909\u3048\u3066\u518d\u5b9f\u884c\u3057\u3066\u3082\u66f4\u65b0\u6a5f\u80fd\u306b\u306f\u306a\u3089\u305a\u3001\u4e0d\u4e00\u81f4\u3068\u3057\u3066\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u65e2\u5b58\u306e\u5206\u985e\u3092\u66f4\u65b0\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u3053\u306e\u8ffd\u52a0\u7528\u30b3\u30fc\u30c9\u3068\u306f\u5206\u3051\u3066\u7ba1\u7406\u753b\u9762\u3067\u5bfe\u8c61\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u65e2\u5b58\u5206\u985e\u3068\u540c\u3058\u30b9\u30e9\u30c3\u30b0\u3092\u4f7f\u3063\u305f\u5225\u540d\u306e\u884c\u3092\u8ffd\u52a0\u3057\u3066\u3001\u540d\u524d\u5909\u66f4\u3092\u8a66\u307f\u308b\u3053\u3068\u306f\u907f\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2 class=\"wp-block-heading\">WP-CLI\u3067\u78ba\u8a8d\u3057\u305f\u767b\u9332\u3068\u518d\u958b\u306e\u7d50\u679c<\/h2>\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u64cd\u4f5c<\/th><th>\u78ba\u8a8d\u3057\u305f\u7d50\u679c<\/th><\/tr><\/thead><tbody><tr><td>3\u884c\u3092dry-run<\/td><td>create\u3068\u8ca0\u306e\u4eeeID\u3092\u8868\u793a\u3002\u5206\u985e\u306f\u4f5c\u6210\u3055\u308c\u306a\u3044<\/td><\/tr><tr><td>3\u884c\u3092apply<\/td><td>\u89aa1\u4ef6\u3068\u5b502\u4ef6\u3092\u4f5c\u6210\u3002\u5b50\u306eparent\u306f\u4f5c\u6210\u3057\u305f\u89aa\u306eID<\/td><\/tr><tr><td>\u540c\u30583\u884c\u3092\u518d\u5ea6apply<\/td><td>\u3059\u3079\u3066keep\u3002ID\u3068\u4ef6\u6570\u306f\u5909\u308f\u3089\u306a\u3044<\/td><\/tr><tr><td>2\u884c\u76ee\u306e\u8ffd\u52a0\u3067\u30a8\u30e9\u30fc\u3092\u767a\u751f\u3055\u305b\u308b<\/td><td>1\u884c\u76ee\u306e\u89aa\u306f\u6b8b\u308b\u3002\u51e6\u7406\u5168\u4f53\u306e\u81ea\u52d5\u53d6\u308a\u6d88\u3057\u306f\u884c\u308f\u308c\u306a\u3044<\/td><\/tr><tr><td>\u30a8\u30e9\u30fc\u5f8c\u3001\u540c\u3058\u5165\u529b\u3067dry-run\u304b\u3089\u518d\u958b<\/td><td>\u89aa\u306fkeep\u3001\u5b502\u4ef6\u306fcreate\u3002\u305d\u306e\u5f8c\u306eapply\u3067\u5b50\u3060\u3051\u3092\u8ffd\u52a0<\/td><\/tr><tr><td>8\u5730\u57df\u30fb47\u90fd\u9053\u5e9c\u770c\u306e55\u884c\u3092\u767b\u9332<\/td><td>\u89aa8\u4ef6\u3068\u5b5047\u4ef6\u3092\u4f5c\u6210\u3002\u767b\u9332\u5f8c\u306edry-run\u306f55\u884c\u3068\u3082keep<\/td><\/tr><tr><td>post_tag\u3067\u89aa\u3092\u6307\u5b9a<\/td><td>\u767b\u9332\u524d\u306b\u505c\u6b62\u3002\u89aa\u306a\u3057\u306e1\u4ef6\u306f\u30bf\u30b0\u3068\u3057\u3066\u8ffd\u52a0\u3067\u304d\u308b<\/td><\/tr><\/tbody><\/table><\/figure>\n<p class=\"wp-block-paragraph\">\u9014\u4e2d\u30a8\u30e9\u30fc\u304b\u3089\u518d\u958b\u3059\u308b\u3068\u304d\u306f\u3001\u524d\u306e\u30ed\u30b0\u306ecreate\u3060\u3051\u3067\u6b8b\u4ef6\u3092\u63a8\u6e2c\u305b\u305a\u3001\u540c\u3058\u5165\u529b\u8868\u3067dry-run\u3092\u3084\u308a\u76f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p class=\"wp-block-paragraph\">keep\u306b\u306a\u3063\u305f\u884c\u306f\u3059\u3067\u306b\u4e00\u81f4\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u305d\u306eID\u3092\u7dad\u6301\u3057\u305f\u307e\u307e\u6b8b\u308a\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u3053\u306e\u78ba\u8a8d\u306f\u691c\u8a3c\u7528\u5206\u985e\u306e\u4e00\u62ec\u8ffd\u52a0\u3067\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u65e2\u5b58\u6295\u7a3f\u3078\u306e\u5272\u308a\u5f53\u3066\u3084\u516c\u958b\u30b5\u30a4\u30c8\u306e\u5206\u985eURL\u5909\u66f4\u3092\u691c\u8a3c\u3057\u305f\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u90fd\u9053\u5e9c\u770c\u30c7\u30fc\u30bf\u3078\u5c55\u958b\u3059\u308b<\/h2><p class=\"wp-block-paragraph\">\u6b21\u306e\u4f8b\u306frows\u914d\u5217\u306e\u4e2d\u8eab\u3067\u3059\u3002\u95a2\u6771\u3092\u89aa\u306b\u3057\u3066\u90fd\u770c\u3092\u8ffd\u52a0\u3059\u308b\u5f62\u3067\u3001\u4ed6\u306e\u5730\u57df\u3082\u540c\u3058\u69cb\u9020\u306b\u3067\u304d\u307e\u3059\u3002\u30b9\u30e9\u30c3\u30b0\u306f\u516c\u958b\u5f8c\u306e\u5206\u985eURL\u306b\u306a\u308b\u305f\u3081\u3001\u65e2\u5b58\u30b5\u30a4\u30c8\u3067\u306f\u5148\u306bURL\u8a2d\u8a08\u3068\u91cd\u8907\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p><div class=\"hcb_wrap\"><pre class=\"prism lang-php\" data-lang=\"php\"><code>array(&#x27;\u95a2\u6771&#x27;, &#x27;kanto&#x27;, &#x27;&#x27;),\narray(&#x27;\u8328\u57ce&#x27;, &#x27;ibaraki&#x27;, &#x27;kanto&#x27;),\narray(&#x27;\u6803\u6728&#x27;, &#x27;tochigi&#x27;, &#x27;kanto&#x27;),\narray(&#x27;\u7fa4\u99ac&#x27;, &#x27;gunma&#x27;, &#x27;kanto&#x27;),\narray(&#x27;\u57fc\u7389&#x27;, &#x27;saitama&#x27;, &#x27;kanto&#x27;),\narray(&#x27;\u5343\u8449&#x27;, &#x27;chiba&#x27;, &#x27;kanto&#x27;),\narray(&#x27;\u6771\u4eac&#x27;, &#x27;tokyo&#x27;, &#x27;kanto&#x27;),\narray(&#x27;\u795e\u5948\u5ddd&#x27;, &#x27;kanagawa&#x27;, &#x27;kanto&#x27;),<\/code><\/pre><\/div><h2 class=\"wp-block-heading\">WP-CLI\u3092\u4f7f\u3048\u306a\u3044\u5834\u5408\u306f\u5c11\u6570\u4ef6\u3092\u7ba1\u7406\u753b\u9762\u3067\u767b\u9332\u3059\u308b<\/h2>\n<p class=\"wp-block-paragraph\">\u5c11\u6570\u4ef6\u306a\u3089\u300c\u6295\u7a3f \u2192 \u30ab\u30c6\u30b4\u30ea\u30fc\u300d\u3067\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002\u6700\u521d\u306b\u89aa\u30ab\u30c6\u30b4\u30ea\u306e\u540d\u524d\u3068\u30b9\u30e9\u30c3\u30b0\u3092\u5165\u529b\u3057\u3001\u89aa\u3092\u300c\u306a\u3057\u300d\u306b\u3057\u3066\u8ffd\u52a0\u3057\u307e\u3059\u3002\u7d9a\u3044\u3066\u5b50\u30ab\u30c6\u30b4\u30ea\u306e\u540d\u524d\u3068\u30b9\u30e9\u30c3\u30b0\u3092\u5165\u529b\u3057\u3001\u300c\u89aa\u30ab\u30c6\u30b4\u30ea\u30fc\u300d\u3067\u5148\u307b\u3069\u306e\u89aa\u3092\u9078\u3093\u3067\u304b\u3089\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30bf\u30b0\u306b\u306f\u89aa\u5b50\u95a2\u4fc2\u304c\u306a\u3044\u305f\u3081\u3001\u3053\u306e\u624b\u9806\u306f\u30ab\u30c6\u30b4\u30ea\u30fc\u7528\u3067\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u8ffd\u52a0\u5f8c\u306f\u4e00\u89a7\u304b\u3089\u5b50\u30ab\u30c6\u30b4\u30ea\u306e\u7de8\u96c6\u753b\u9762\u3092\u958b\u304d\u76f4\u3057\u3001\u540d\u524d\u30fb\u30b9\u30e9\u30c3\u30b0\u30fb\u89aa\u306e\u9078\u629e\u3092\u7167\u5408\u3057\u307e\u3059\u3002\u9694\u96e2\u3057\u305fWordPress 7.1.2\u3067\u691c\u8a3c\u95a2\u6771\u3092\u89aa\u3001\u691c\u8a3c\u6771\u4eac\u3092\u5b50\u3068\u3057\u3066\u767b\u9332\u3057\u3001\u5b50\u306e\u89aaID\u3068\u518d\u8868\u793a\u3057\u305f\u9078\u629e\u6b04\u304c\u4e00\u81f4\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002\u30ab\u30c6\u30b4\u30ea\u306e\u767b\u9332\u3060\u3051\u3067\u306f\u65e2\u5b58\u6295\u7a3f\u306b\u306f\u5272\u308a\u5f53\u3066\u3089\u308c\u307e\u305b\u3093\u3002\u5fc5\u8981\u306a\u6295\u7a3f\u3092\u7de8\u96c6\u3057\u3001\u5bfe\u8c61\u30ab\u30c6\u30b4\u30ea\u3092\u9078\u3093\u3067\u66f4\u65b0\u3059\u308b\u4f5c\u696d\u306f\u5225\u9014\u884c\u3044\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u3053\u306e\u5b9f\u753b\u9762\u306f\u7ba1\u7406\u753b\u9762\u306b\u3088\u308b\u4ee3\u66ff\u624b\u9806\u3067\u3059\u3002WP-CLI\u304c\u306a\u3044\u74b0\u5883\u3067\u4e0a\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3067\u304d\u305f\u3068\u3044\u3046\u8a3c\u62e0\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5927\u91cf\u767b\u9332\u3092\u884c\u3046\u5834\u5408\u306f\u3001WP-CLI\u3092\u4f7f\u3048\u308b\u691c\u8a3c\u74b0\u5883\u3067dry-run\u306e\u7d50\u679c\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u9032\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-category-parent-saved.jpg\"><img decoding=\"async\" width=\"1265\" height=\"712\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-category-parent-saved.jpg\" alt=\"\u5b50\u30ab\u30c6\u30b4\u30ea\u691c\u8a3c\u6771\u4eac\u306e\u7de8\u96c6\u753b\u9762\u3067\u89aa\u30ab\u30c6\u30b4\u30ea\u691c\u8a3c\u95a2\u6771\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u72b6\u614b\" class=\"wp-image-30502\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-category-parent-saved.jpg 1265w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-category-parent-saved-382x215.jpg 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-category-parent-saved-812x457.jpg 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-category-parent-saved-768x432.jpg 768w\" sizes=\"(max-width: 1265px) 100vw, 1265px\" \/><\/a><figcaption class=\"wp-element-caption\">\u5b50\u30ab\u30c6\u30b4\u30ea\u691c\u8a3c\u6771\u4eac\u306e\u7de8\u96c6\u753b\u9762\u3067\u89aa\u30ab\u30c6\u30b4\u30ea\u691c\u8a3c\u95a2\u6771\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u72b6\u614b\u30022026\u5e7410\u67083\u65e5\u3001\u9694\u96e2\u3057\u305fWordPress 7.1.2 \/ SWELL 2.19.0\u3067\u64ae\u5f71\u3002<\/figcaption><\/figure><h2 class=\"wp-block-heading\">\u767b\u9332\u5f8c\u306e\u78ba\u8a8d\u3068\u623b\u3057\u65b9<\/h2><p class=\"wp-block-paragraph\">\u7ba1\u7406\u753b\u9762\u3067\u540d\u524d\u30fb\u30b9\u30e9\u30c3\u30b0\u30fb\u89aa\u5b50\u95a2\u4fc2\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u518d\u5ea6dry-run\u3092\u5b9f\u884c\u3057\u3066\u5bfe\u8c61\u884c\u304ckeep\u306b\u306a\u308b\u3053\u3068\u3082\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u4f8b\u306f\u5206\u985e\u3060\u3051\u3092\u4f5c\u6210\u3057\u3001\u6295\u7a3f\u3078\u306e\u5272\u308a\u5f53\u3066\u3084\u8868\u793a\u9806\u306f\u5909\u66f4\u3057\u307e\u305b\u3093\u3002<\/p><p class=\"wp-block-paragraph\">\u9014\u4e2d\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3082\u3001\u5148\u306b\u4f5c\u6210\u3057\u305f\u5206\u985e\u306f\u6b8b\u308a\u307e\u3059\u3002\u30ed\u30b0\u306ecreate\u3068ID\u3092\u78ba\u8a8d\u3057\u3001\u518d\u5b9f\u884c\u524d\u306bdry-run\u3067\u73fe\u5728\u306e\u72b6\u614b\u3092\u8abf\u3079\u307e\u3059\u3002\u623b\u3059\u5834\u5408\u306f\u4eca\u56de\u4f5c\u6210\u3057\u305f\u5206\u985e\u3060\u3051\u3092\u7ba1\u7406\u753b\u9762\u3067\u78ba\u8a8d\u3057\u3001\u6295\u7a3f\u306e\u5272\u308a\u5f53\u3066\u304c\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u5b50\u304b\u3089\u89aa\u306e\u9806\u306b\u6574\u7406\u3057\u307e\u3059\u3002\u904b\u7528\u30c7\u30fc\u30bf\u3092\u5909\u66f4\u3057\u305f\u5834\u5408\u306f\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u5fa9\u5143\u306e\u5f71\u97ff\u3082\u542b\u3081\u3066\u7ba1\u7406\u8005\u304c\u5224\u65ad\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p><p class=\"wp-block-paragraph\">2026\u5e7410\u67083\u65e5\u3001\u9694\u96e2\u3057\u305fWordPress 7.1.2 \/ PHP 8.2.29 \/ WP-CLI 2.12.0\u3067\u3001\u5b9f\u969b\u306ewp eval-file\u306b\u3088\u308b\u78ba\u8a8d\u30fb\u767b\u9332\u30fb\u518d\u5b9f\u884c\u3092\u691c\u8a3c\u3057\u307e\u3057\u305f\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u691c\u8a3c\u7528\u306e\u540d\u524d\u3068\u30b9\u30e9\u30c3\u30b0\u3078\u7f6e\u304d\u63db\u3048\u3001\u63b2\u8f09\u30b3\u30fc\u30c9\u306e\u767b\u9332\u51e6\u7406\u3068\u89aa\u5b50\u95a2\u4fc2\u306f\u7dad\u6301\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u4ed6\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u767b\u9332\u5236\u9650\u3084\u65e2\u5b58\u30b5\u30a4\u30c8\u56fa\u6709\u306e\u5206\u985e\u3068\u306e\u7af6\u5408\u306f\u3001\u5404\u74b0\u5883\u3067dry-run\u3068\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p><p class=\"wp-block-paragraph\">\u53c2\u7167\uff1a<a href=\"https:\/\/developer.wordpress.org\/cli\/commands\/eval-file\/\">WP-CLI eval-file<\/a>\u3001<a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_insert_term\/\">wp_insert_term()<\/a>\u3002\u65e7GitHub\u4f8b\u3068\u306f\u540c\u671f\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p><h2 class=\"wp-block-heading\">\u90fd\u9053\u5e9c\u770c47\u4ef6\u3068\u5730\u57df\u306e\u5165\u529b\u4f8b<\/h2><p class=\"wp-block-paragraph\">rows\u914d\u5217\u306e\u4e2d\u8eab\u3092\u6b21\u306e\u4e00\u89a7\u3078\u7f6e\u304d\u63db\u3048\u308b\u3068\u30018\u5730\u57df\u306847\u90fd\u9053\u5e9c\u770c\u3092\u6271\u3048\u307e\u3059\u3002\u7fa4\u99ac\u306e\u30b9\u30e9\u30c3\u30b0\u306f\u4e0a\u306e\u95a2\u6771\u4f8b\u3068\u540c\u3058gunma\u306b\u7d71\u4e00\u3057\u3066\u3044\u307e\u3059\u3002\u3059\u3067\u306bgumma\u3067\u767b\u9332\u6e08\u307f\u306e\u5834\u5408\u306f\u3001\u3053\u306e\u8868\u3092\u305d\u306e\u307e\u307e\u8ffd\u52a0\u5b9f\u884c\u305b\u305a\u65e2\u5b58\u306e\u30b9\u30e9\u30c3\u30b0\u306b\u5408\u308f\u305b\u3066\u304f\u3060\u3055\u3044\u3002\u5206\u985eURL\u3092\u5909\u66f4\u3059\u308b\u64cd\u4f5c\u306f\u3001\u3053\u306e\u4e00\u62ec\u8ffd\u52a0\u30b3\u30fc\u30c9\u306e\u5bfe\u8c61\u5916\u3067\u3059\u3002\u540d\u79f0\u30fb\u30b9\u30e9\u30c3\u30b0\u306f\u65e2\u5b58\u8a2d\u8a08\u306b\u5408\u308f\u305b\u3066\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p><div class=\"hcb_wrap\"><pre class=\"prism lang-php\" data-lang=\"PHP\"><code>array(&#x27;\u5317\u6d77\u9053\u30fb\u6771\u5317&#x27;, &#x27;hokkaido-tohoku&#x27;, &#x27;&#x27;),\narray(&#x27;\u5317\u6d77\u9053&#x27;, &#x27;hokkaido&#x27;, &#x27;hokkaido-tohoku&#x27;),\narray(&#x27;\u9752\u68ee&#x27;, &#x27;aomori&#x27;, &#x27;hokkaido-tohoku&#x27;),\narray(&#x27;\u5ca9\u624b&#x27;, &#x27;iwate&#x27;, &#x27;hokkaido-tohoku&#x27;),\narray(&#x27;\u5bae\u57ce&#x27;, &#x27;miyagi&#x27;, &#x27;hokkaido-tohoku&#x27;),\narray(&#x27;\u79cb\u7530&#x27;, &#x27;akita&#x27;, &#x27;hokkaido-tohoku&#x27;),\narray(&#x27;\u5c71\u5f62&#x27;, &#x27;yamagata&#x27;, &#x27;hokkaido-tohoku&#x27;),\narray(&#x27;\u798f\u5cf6&#x27;, &#x27;fukushima&#x27;, &#x27;hokkaido-tohoku&#x27;),\narray(&#x27;\u95a2\u6771&#x27;, &#x27;kanto&#x27;, &#x27;&#x27;),\narray(&#x27;\u8328\u57ce&#x27;, &#x27;ibaraki&#x27;, &#x27;kanto&#x27;),\narray(&#x27;\u6803\u6728&#x27;, &#x27;tochigi&#x27;, &#x27;kanto&#x27;),\narray(&#x27;\u7fa4\u99ac&#x27;, &#x27;gunma&#x27;, &#x27;kanto&#x27;),\narray(&#x27;\u57fc\u7389&#x27;, &#x27;saitama&#x27;, &#x27;kanto&#x27;),\narray(&#x27;\u5343\u8449&#x27;, &#x27;chiba&#x27;, &#x27;kanto&#x27;),\narray(&#x27;\u6771\u4eac&#x27;, &#x27;tokyo&#x27;, &#x27;kanto&#x27;),\narray(&#x27;\u795e\u5948\u5ddd&#x27;, &#x27;kanagawa&#x27;, &#x27;kanto&#x27;),\narray(&#x27;\u7532\u4fe1\u8d8a\u30fb\u5317\u9678&#x27;, &#x27;koshinetsu-hokuriku&#x27;, &#x27;&#x27;),\narray(&#x27;\u65b0\u6f5f&#x27;, &#x27;niigata&#x27;, &#x27;koshinetsu-hokuriku&#x27;),\narray(&#x27;\u5bcc\u5c71&#x27;, &#x27;toyama&#x27;, &#x27;koshinetsu-hokuriku&#x27;),\narray(&#x27;\u77f3\u5ddd&#x27;, &#x27;ishikawa&#x27;, &#x27;koshinetsu-hokuriku&#x27;),\narray(&#x27;\u798f\u4e95&#x27;, &#x27;fukui&#x27;, &#x27;koshinetsu-hokuriku&#x27;),\narray(&#x27;\u9577\u91ce&#x27;, &#x27;nagano&#x27;, &#x27;koshinetsu-hokuriku&#x27;),\narray(&#x27;\u5c71\u68a8&#x27;, &#x27;yamanashi&#x27;, &#x27;koshinetsu-hokuriku&#x27;),\narray(&#x27;\u6771\u6d77&#x27;, &#x27;tokai&#x27;, &#x27;&#x27;),\narray(&#x27;\u5c90\u961c&#x27;, &#x27;gifu&#x27;, &#x27;tokai&#x27;),\narray(&#x27;\u9759\u5ca1&#x27;, &#x27;shizuoka&#x27;, &#x27;tokai&#x27;),\narray(&#x27;\u611b\u77e5&#x27;, &#x27;aichi&#x27;, &#x27;tokai&#x27;),\narray(&#x27;\u4e09\u91cd&#x27;, &#x27;mie&#x27;, &#x27;tokai&#x27;),\narray(&#x27;\u8fd1\u757f&#x27;, &#x27;kinki&#x27;, &#x27;&#x27;),\narray(&#x27;\u6ecb\u8cc0&#x27;, &#x27;shiga&#x27;, &#x27;kinki&#x27;),\narray(&#x27;\u4eac\u90fd&#x27;, &#x27;kyoto&#x27;, &#x27;kinki&#x27;),\narray(&#x27;\u5927\u962a&#x27;, &#x27;osaka&#x27;, &#x27;kinki&#x27;),\narray(&#x27;\u5175\u5eab&#x27;, &#x27;hyogo&#x27;, &#x27;kinki&#x27;),\narray(&#x27;\u5948\u826f&#x27;, &#x27;nara&#x27;, &#x27;kinki&#x27;),\narray(&#x27;\u548c\u6b4c\u5c71&#x27;, &#x27;wakayama&#x27;, &#x27;kinki&#x27;),\narray(&#x27;\u4e2d\u56fd&#x27;, &#x27;chugoku&#x27;, &#x27;&#x27;),\narray(&#x27;\u9ce5\u53d6&#x27;, &#x27;tottori&#x27;, &#x27;chugoku&#x27;),\narray(&#x27;\u5cf6\u6839&#x27;, &#x27;shimane&#x27;, &#x27;chugoku&#x27;),\narray(&#x27;\u5ca1\u5c71&#x27;, &#x27;okayama&#x27;, &#x27;chugoku&#x27;),\narray(&#x27;\u5e83\u5cf6&#x27;, &#x27;hiroshima&#x27;, &#x27;chugoku&#x27;),\narray(&#x27;\u5c71\u53e3&#x27;, &#x27;yamaguchi&#x27;, &#x27;chugoku&#x27;),\narray(&#x27;\u56db\u56fd&#x27;, &#x27;shikoku&#x27;, &#x27;&#x27;),\narray(&#x27;\u5fb3\u5cf6&#x27;, &#x27;tokushima&#x27;, &#x27;shikoku&#x27;),\narray(&#x27;\u9999\u5ddd&#x27;, &#x27;kagawa&#x27;, &#x27;shikoku&#x27;),\narray(&#x27;\u611b\u5a9b&#x27;, &#x27;ehime&#x27;, &#x27;shikoku&#x27;),\narray(&#x27;\u9ad8\u77e5&#x27;, &#x27;kochi&#x27;, &#x27;shikoku&#x27;),\narray(&#x27;\u4e5d\u5dde\u30fb\u6c96\u7e04&#x27;, &#x27;kyushu-okinawa&#x27;, &#x27;&#x27;),\narray(&#x27;\u798f\u5ca1&#x27;, &#x27;fukuoka&#x27;, &#x27;kyushu-okinawa&#x27;),\narray(&#x27;\u4f50\u8cc0&#x27;, &#x27;saga&#x27;, &#x27;kyushu-okinawa&#x27;),\narray(&#x27;\u9577\u5d0e&#x27;, &#x27;nagasaki&#x27;, &#x27;kyushu-okinawa&#x27;),\narray(&#x27;\u718a\u672c&#x27;, &#x27;kumamoto&#x27;, &#x27;kyushu-okinawa&#x27;),\narray(&#x27;\u5927\u5206&#x27;, &#x27;oita&#x27;, &#x27;kyushu-okinawa&#x27;),\narray(&#x27;\u5bae\u5d0e&#x27;, &#x27;miyazaki&#x27;, &#x27;kyushu-okinawa&#x27;),\narray(&#x27;\u9e7f\u5150\u5cf6&#x27;, &#x27;kagoshima&#x27;, &#x27;kyushu-okinawa&#x27;),\narray(&#x27;\u6c96\u7e04&#x27;, &#x27;okinawa&#x27;, &#x27;kyushu-okinawa&#x27;),<\/code><\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>\u30ab\u30c6\u30b4\u30ea\u30fc\u3084\u30bf\u30b0\u3092\u4e00\u62ec\u767b\u9332\u3059\u308b\u5834\u5408\u306f\u3001\u540d\u524d\u30fb\u30b9\u30e9\u30c3\u30b0\u30fb\u89aa\u30ab\u30c6\u30b4\u30ea\u30fc\u3092\u4e00\u89a7\u306b\u3057\u3066\u304b\u3089\u767b\u9332\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001WP-CLI\u3092\u5229\u7528\u3067\u304d\u308b\u7ba1\u7406\u8005\u5411\u3051\u306b\u3001\u8ffd\u52a0\u4e88\u5b9a\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u767b\u9332\u3059\u308bPHP\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u65e2\u5b58\u306e\u5206\u985e\u3092\u4e00\u62ec\u4e0a\u66f8\u304d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":16377,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","book_review_data":"","footnotes":"","ssp_meta_title":"WordPress\u306e\u30ab\u30c6\u30b4\u30ea\u30fc\u30fb\u30bf\u30b0\u4e00\u62ec\u767b\u9332\uff5cWP-CLI","ssp_meta_description":"WP-CLI\u3067\u30ab\u30c6\u30b4\u30ea\u30fc\u3084\u30bf\u30b0\u3092\u4e00\u62ec\u8ffd\u52a0\u3059\u308bPHP\u4f8b\u3002dry-run\u3067\u78ba\u8a8d\u3057\u3001\u89aa\u5b50\u95a2\u4fc2\u3092\u4fdd\u3063\u3066\u767b\u9332\u3057\u307e\u3059\u3002create\u3068keep\u306e\u8aad\u307f\u65b9\u3001\u9014\u4e2d\u30a8\u30e9\u30fc\u304b\u3089\u306e\u518d\u958b\u3001\u7ba1\u7406\u753b\u9762\u3067\u306e\u4ee3\u66ff\u624b\u9806\u3068\u623b\u3057\u65b9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002"},"categories":[91],"tags":[],"area":[],"class_list":["post-16371","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\/16371","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=16371"}],"version-history":[{"count":9,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/16371\/revisions"}],"predecessor-version":[{"id":30653,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/16371\/revisions\/30653"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media\/16377"}],"wp:attachment":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=16371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=16371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=16371"},{"taxonomy":"area","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/area?post=16371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}