{"id":6111,"date":"2023-12-14T15:33:36","date_gmt":"2023-12-14T06:33:36","guid":{"rendered":"https:\/\/wpmake.jp\/contents\/?post_type=customize&#038;p=6111"},"modified":"2023-12-15T09:41:11","modified_gmt":"2023-12-15T00:41:11","slug":"create-custom-post-status","status":"publish","type":"customize","link":"https:\/\/wpmake.jp\/contents\/customize\/create-custom-post-status\/","title":{"rendered":"WordPress\u306e\u72ec\u81ea\u306e\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u308f\u305a\u306b\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_71 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u6b21<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #282828;color:#282828\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #282828;color:#282828\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/wpmake.jp\/contents\/customize\/create-custom-post-status\/#%E3%81%AF%E3%81%98%E3%82%81%E3%81%AB\" title=\"\u306f\u3058\u3081\u306b\">\u306f\u3058\u3081\u306b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/wpmake.jp\/contents\/customize\/create-custom-post-status\/#%E6%8A%95%E7%A8%BF%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%E3%81%AE%E5%AE%9A%E7%BE%A9\" title=\"\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u5b9a\u7fa9\">\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u5b9a\u7fa9<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/wpmake.jp\/contents\/customize\/create-custom-post-status\/#%E6%8A%95%E7%A8%BF%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%E3%81%AE%E7%A8%AE%E9%A1%9E\" title=\"\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u7a2e\u985e\">\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u7a2e\u985e<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/wpmake.jp\/contents\/customize\/create-custom-post-status\/#register_post_status\" title=\"register_post_status\">register_post_status<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/wpmake.jp\/contents\/customize\/create-custom-post-status\/#%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E6%8A%95%E7%A8%BF%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%E3%81%AE%E8%BF%BD%E5%8A%A0\" title=\"\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u8ffd\u52a0\">\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u8ffd\u52a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/wpmake.jp\/contents\/customize\/create-custom-post-status\/#%E7%B7%A8%E9%9B%86%E7%94%BB%E9%9D%A2%E3%81%A7%E9%81%B8%E6%8A%9E%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\" title=\"\u7de8\u96c6\u753b\u9762\u3067\u9078\u629e\u3059\u308b\u65b9\u6cd5\">\u7de8\u96c6\u753b\u9762\u3067\u9078\u629e\u3059\u308b\u65b9\u6cd5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/wpmake.jp\/contents\/customize\/create-custom-post-status\/#Classic_Editor_%E3%81%A7%E3%81%AE%E5%85%AC%E9%96%8B%E3%83%A1%E3%82%BF%E3%83%9C%E3%83%83%E3%82%AF%E3%82%B9\" title=\"Classic Editor \u3067\u306e\u516c\u958b\u30e1\u30bf\u30dc\u30c3\u30af\u30b9\">Classic Editor \u3067\u306e\u516c\u958b\u30e1\u30bf\u30dc\u30c3\u30af\u30b9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/wpmake.jp\/contents\/customize\/create-custom-post-status\/#%E3%82%AF%E3%82%A4%E3%83%83%E3%82%AF%E7%B7%A8%E9%9B%86%E7%94%BB%E9%9D%A2\" title=\"\u30af\u30a4\u30c3\u30af\u7de8\u96c6\u753b\u9762\">\u30af\u30a4\u30c3\u30af\u7de8\u96c6\u753b\u9762<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/wpmake.jp\/contents\/customize\/create-custom-post-status\/#%E3%82%BB%E3%83%AC%E3%82%AF%E3%83%88%E3%83%9C%E3%83%83%E3%82%AF%E3%82%B9-%E3%83%89%E3%83%AD%E3%83%83%E3%83%97%E3%83%80%E3%82%A6%E3%83%B3\" title=\"\u30bb\u30ec\u30af\u30c8\u30dc\u30c3\u30af\u30b9-\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\">\u30bb\u30ec\u30af\u30c8\u30dc\u30c3\u30af\u30b9-\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/wpmake.jp\/contents\/customize\/create-custom-post-status\/#%E3%81%BE%E3%81%A8%E3%82%81\" title=\"\u307e\u3068\u3081\">\u307e\u3068\u3081<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/wpmake.jp\/contents\/customize\/create-custom-post-status\/#%E5%8F%82%E8%80%83%E3%83%AA%E3%83%B3%E3%82%AF\" title=\"\u53c2\u8003\u30ea\u30f3\u30af\">\u53c2\u8003\u30ea\u30f3\u30af<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%AF%E3%81%98%E3%82%81%E3%81%AB\"><\/span>\u306f\u3058\u3081\u306b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4ee5\u524d\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306a\u3057\u3067\u72ec\u81ea\u306e\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u8ffd\u52a0\u3057\u305f\u3053\u3068\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u305d\u306e\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u306e 1 \u3064\u306b\u30d7\u30e9\u30b0\u30a4\u30f3<sup>[<a href=\"#reference\">1<\/a>]<\/sup> <sup>[<a href=\"#reference\">2<\/a>]<\/sup>\u304c\u3042\u308a\u307e\u3059\u304c\u3001<br \/>\n\u672c\u8a18\u4e8b\u3067\u306f <strong>\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u308f\u305a\u306b\u3001\u72ec\u81ea\u306e\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/strong> \u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u672c\u8a18\u4e8b\u3067\u8aac\u660e\u3059\u308b\u6295\u7a3f\u30da\u30fc\u30b8\u3067\u306e\u30a8\u30c7\u30a3\u30bf\u64cd\u4f5c\u53ca\u3073\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306f <strong>Classic Editor<\/strong> \u306b\u306a\u308b\u305f\u3081\u3001\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E6%8A%95%E7%A8%BF%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%E3%81%AE%E5%AE%9A%E7%BE%A9\"><\/span>\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u5b9a\u7fa9<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u521d\u3081\u306b\u3001\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E6%8A%95%E7%A8%BF%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%E3%81%AE%E7%A8%AE%E9%A1%9E\"><\/span>\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u7a2e\u985e<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>WordPress \u306b\u304a\u3044\u3066\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u4f7f\u7528\u3055\u308c\u308b\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306f\u3001\u300c\u516c\u958b\u300d\u3084\u300c\u975e\u516c\u958b\u300d\u3001\u300c\u4e88\u7d04\u6e08\u307f\u300d\u7b49 8 \u3064\u3042\u308a\u307e\u3059\u3002<sup>[<a href=\"#reference\">3<\/a>]<\/sup><\/p>\n<p>\u3053\u308c\u3089\u306e\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306f\u300esrc\/wp-includes\/post.php (version 6.4)\u300f \u306e <strong>create_initial_post_types<\/strong>\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<sup>[<a href=\"#reference\">4<\/a>]<\/sup><\/p>\n<p>\u4ee5\u4e0b\u3001\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u7b87\u6240\u306e\u629c\u7c8b\u3067\u3059\u3002<\/p>\n<pre> \r\n  function create_initial_post_types()\r\n  {\r\n      WP_Post_Type::reset_default_labels();\r\n      \/**\r\n       * \u6295\u7a3f\u3084\u56fa\u5b9a\u30da\u30fc\u30b8\u3001\u30d6\u30ed\u30c3\u30af\u306e\u5b9a\u7fa9\u3092\u884c\u3046\u3002\r\n       *\/\r\n      register_post_type(\r\n          \/* \u5404\u7a2e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8a2d\u5b9a\u3059\u308b\u3002\u5272\u611b\u3057\u307e\u3059\u3002 *\/\r\n      );\r\n      \/**\r\n       * \u4ee5\u4e0b\u3001\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u5b9a\u7fa9\r\n       * register_post_status()\u306b\u3088\u308b\u5b9a\u7fa9\u306f\u5408\u8a0812\u500b\r\n       *\/\r\n      register_post_status(\r\n          'publish',\r\n          array(\r\n              'label'       => _x('Published', 'post status'),\r\n              'public'      => true,\r\n              '_builtin'    => true, \/* internal use only. *\/\r\n              \/* translators: %s: Number of published posts. *\/\r\n              'label_count' => _n_noop(\r\n                  'Published (%s)',\r\n                  'Published (%s)'\r\n              ),\r\n          )\r\n      );\r\n\r\n      register_post_status(\r\n          'future',\r\n          array(\r\n              'label'       => _x('Scheduled', 'post status'),\r\n              'protected'   => true,\r\n              '_builtin'    => true, \/* internal use only. *\/\r\n              \/* translators: %s: Number of scheduled posts. *\/\r\n              'label_count' => _n_noop(\r\n                  'Scheduled (%s)',\r\n                  'Scheduled (%s)'\r\n              ),\r\n          )\r\n      );\r\n\r\n      register_post_status(\r\n          'draft',\r\n          array(\r\n              'label'         => _x('Draft', 'post status'),\r\n              'protected'     => true,\r\n              '_builtin'      => true, \/* internal use only. *\/\r\n              \/* translators: %s: Number of draft posts. *\/\r\n              'label_count'   => _n_noop(\r\n                  'Draft (%s)',\r\n                  'Drafts (%s)'\r\n              ),\r\n              'date_floating' => true,\r\n          )\r\n      );\r\n\r\n      register_post_status(\r\n          'pending',\r\n          array(\r\n              'label'         => _x('Pending', 'post status'),\r\n              'protected'     => true,\r\n              '_builtin'      => true, \/* internal use only. *\/\r\n              \/* translators: %s: Number of pending posts. *\/\r\n              'label_count'   => _n_noop(\r\n                  'Pending (%s)',\r\n                  'Pending (%s)'\r\n              ),\r\n              'date_floating' => true,\r\n          )\r\n      );\r\n\r\n      register_post_status(\r\n          'private',\r\n          array(\r\n              'label'       => _x('Private', 'post status'),\r\n              'private'     => true,\r\n              '_builtin'    => true, \/* internal use only. *\/\r\n              \/* translators: %s: Number of private posts. *\/\r\n              'label_count' => _n_noop(\r\n                  'Private (%s)',\r\n                  'Private (%s)'\r\n              ),\r\n          )\r\n      );\r\n\r\n      register_post_status(\r\n          'trash',\r\n          array(\r\n              'label'                     => _x('Trash', 'post status'),\r\n              'internal'                  => true,\r\n              '_builtin'                  => true, \/* internal use only. *\/\r\n              \/* translators: %s: Number of trashed posts. *\/\r\n              'label_count'               => _n_noop(\r\n                  'Trash (%s)',\r\n                  'Trash (%s)'\r\n              ),\r\n              'show_in_admin_status_list' => true,\r\n          )\r\n      );\r\n\r\n      register_post_status(\r\n          'auto-draft',\r\n          array(\r\n              'label'         => 'auto-draft',\r\n              'internal'      => true,\r\n              '_builtin'      => true, \/* internal use only. *\/\r\n              'date_floating' => true,\r\n          )\r\n      );\r\n\r\n      register_post_status(\r\n          'inherit',\r\n          array(\r\n              'label'               => 'inherit',\r\n              'internal'            => true,\r\n              '_builtin'            => true, \/* internal use only. *\/\r\n              'exclude_from_search' => false,\r\n          )\r\n      );\r\n\r\n      register_post_status(\r\n          'request-pending',\r\n          array(\r\n              'label'               => _x('Pending', 'request status'),\r\n              'internal'            => true,\r\n              '_builtin'            => true, \/* internal use only. *\/\r\n              \/* translators: %s: Number of pending requests. *\/\r\n              'label_count'         => _n_noop(\r\n                  'Pending (%s)',\r\n                  'Pending (%s)'\r\n              ),\r\n              'exclude_from_search' => false,\r\n          )\r\n      );\r\n\r\n      register_post_status(\r\n          'request-confirmed',\r\n          array(\r\n              'label'               => _x('Confirmed', 'request status'),\r\n              'internal'            => true,\r\n              '_builtin'            => true, \/* internal use only. *\/\r\n              \/* translators: %s: Number of confirmed requests. *\/\r\n              'label_count'         => _n_noop(\r\n                  'Confirmed (%s)',\r\n                  'Confirmed (%s)'\r\n              ),\r\n              'exclude_from_search' => false,\r\n          )\r\n      );\r\n\r\n      register_post_status(\r\n          'request-failed',\r\n          array(\r\n              'label'               => _x('Failed', 'request status'),\r\n              'internal'            => true,\r\n              '_builtin'            => true, \/* internal use only. *\/\r\n              \/* translators: %s: Number of failed requests. *\/\r\n              'label_count'         => _n_noop(\r\n                  'Failed (%s)',\r\n                  'Failed (%s)'\r\n              ),\r\n              'exclude_from_search' => false,\r\n          )\r\n      );\r\n\r\n      register_post_status(\r\n          'request-completed',\r\n          array(\r\n              'label'               => _x('Completed', 'request status'),\r\n              'internal'            => true,\r\n              '_builtin'            => true, \/* internal use only. *\/\r\n              \/* translators: %s: Number of completed requests. *\/\r\n              'label_count'         => _n_noop(\r\n                  'Completed (%s)',\r\n                  'Completed (%s)'\r\n              ),\r\n              'exclude_from_search' => false,\r\n          )\r\n      );\r\n  }\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"register_post_status\"><\/span>register_post_status<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5148\u307b\u3069\u306e\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306f <strong>register_post_status<\/strong> \u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<sup>[<a href=\"#reference\">5<\/a>]<\/sup><\/p>\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u7b2c\u4e00\u5f15\u6570\u306b\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u540d\u524d<\/li>\n<li>\u7b2c\u4e8c\u5f15\u6570\u306b\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u8a2d\u5b9a\u914d\u5217<\/li>\n<\/ol>\n<p><strong>register_post_status<\/strong> \u3092\u629c\u7c8b\u3057\u305f\u3082\u306e\u304c\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>  \r\n  \/**\r\n  * Registers a post status. Do not use before init.\r\n  *\r\n  * A simple function for creating or modifying a post status based on the\r\n  * parameters given. The function will accept an array (second optional\r\n  * parameter), along with a string for the post status name.\r\n  *\r\n  * Arguments prefixed with an _underscore shouldn't be used by plugins and themes.\r\n  *\r\n  * @since 3.0.0\r\n  *\r\n  * @global stdClass[] $wp_post_statuses Inserts new post status object into the list\r\n  *\r\n  * @param string       $post_status Name of the post status.\r\n  * @param array|string $args {\r\n  *     Optional. Array or string of post status arguments.\r\n  *\r\n  *     @type bool|string $label                     A descriptive name for the post status marked\r\n  *                                                  for translation. Defaults to value of $post_status.\r\n  *     @type array|false $label_count               Nooped plural text from _n_noop() to provide the singular\r\n  *                                                  and plural forms of the label for counts. Default false\r\n  *                                                  which means the `$label` argument will be used for both\r\n  *                                                  the singular and plural forms of this label.\r\n  *     @type bool        $exclude_from_search       Whether to exclude posts with this post status\r\n  *                                                  from search results. Default is value of $internal.\r\n  *     @type bool        $_builtin                  Whether the status is built-in. Core-use only.\r\n  *                                                  Default false.\r\n  *     @type bool        $public                    Whether posts of this status should be shown\r\n  *                                                  in the front end of the site. Default false.\r\n  *     @type bool        $internal                  Whether the status is for internal use only.\r\n  *                                                  Default false.\r\n  *     @type bool        $protected                 Whether posts with this status should be protected.\r\n  *                                                  Default false.\r\n  *     @type bool        $private                   Whether posts with this status should be private.\r\n  *                                                  Default false.\r\n  *     @type bool        $publicly_queryable        Whether posts with this status should be publicly-\r\n  *                                                  queryable. Default is value of $public.\r\n  *     @type bool        $show_in_admin_all_list    Whether to include posts in the edit listing for\r\n  *                                                  their post type. Default is the opposite value\r\n  *                                                  of $internal.\r\n  *     @type bool        $show_in_admin_status_list Show in the list of statuses with post counts at\r\n  *                                                  the top of the edit listings,\r\n  *                                                  e.g. All (12) | Published (9) | My Custom Status (2)\r\n  *                                                  Default is the opposite value of $internal.\r\n  *     @type bool        $date_floating             Whether the post has a floating creation date.\r\n  *                                                  Default to false.\r\n  * }\r\n  * @return object\r\n  *\/\r\n  function register_post_status( $post_status, $args = array() ) {\r\n    global $wp_post_statuses;\r\n\r\n    if ( ! is_array( $wp_post_statuses ) ) {\r\n        $wp_post_statuses = array();\r\n    }\r\n\r\n    \/\/ Args prefixed with an underscore are reserved for internal use.\r\n    $defaults = array(\r\n        'label'                     => false,\r\n        'label_count'               => false,\r\n        'exclude_from_search'       => null,\r\n        '_builtin'                  => false,\r\n        'public'                    => null,\r\n        'internal'                  => null,\r\n        'protected'                 => null,\r\n        'private'                   => null,\r\n        'publicly_queryable'        => null,\r\n        'show_in_admin_status_list' => null,\r\n        'show_in_admin_all_list'    => null,\r\n        'date_floating'             => null,\r\n    );\r\n    $args     = wp_parse_args( $args, $defaults );\r\n    $args     = (object) $args;\r\n\r\n    $post_status = sanitize_key( $post_status );\r\n    $args->name  = $post_status;\r\n\r\n    \/\/ Set various defaults.\r\n    if ( null === $args->public && null === $args->internal && null === $args->protected && null === $args->private ) {\r\n        $args->internal = true;\r\n    }\r\n\r\n    if ( null === $args->public ) {\r\n        $args->public = false;\r\n    }\r\n\r\n    if ( null === $args->private ) {\r\n        $args->private = false;\r\n    }\r\n\r\n    if ( null === $args->protected ) {\r\n        $args->protected = false;\r\n    }\r\n\r\n    if ( null === $args->internal ) {\r\n        $args->internal = false;\r\n    }\r\n\r\n    if ( null === $args->publicly_queryable ) {\r\n        $args->publicly_queryable = $args->public;\r\n    }\r\n\r\n    if ( null === $args->exclude_from_search ) {\r\n        $args->exclude_from_search = $args->internal;\r\n    }\r\n\r\n    if ( null === $args->show_in_admin_all_list ) {\r\n        $args->show_in_admin_all_list = ! $args->internal;\r\n    }\r\n\r\n    if ( null === $args->show_in_admin_status_list ) {\r\n        $args->show_in_admin_status_list = ! $args->internal;\r\n    }\r\n\r\n    if ( null === $args->date_floating ) {\r\n        $args->date_floating = false;\r\n    }\r\n\r\n    if ( false === $args->label ) {\r\n        $args->label = $post_status;\r\n    }\r\n\r\n    if ( false === $args->label_count ) {\r\n        \/\/ phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralSingular,WordPress.WP.I18n.NonSingularStringLiteralPlural\r\n        $args->label_count = _n_noop( $args->label, $args->label );\r\n    }\r\n\r\n    $wp_post_statuses[ $post_status ] = $args;\r\n\r\n    return $args;\r\n  }\r\n<\/pre>\n<p>\u300eregister_post_status\u300f\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u8a2d\u5b9a\u914d\u5217\u306b\u3064\u3044\u3066\u3001\u4ee5\u4e0b\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n<table>\n<tr>\n<th>\u914d\u5217\u306e\u30ad\u30fc<\/th>\n<th>\u8aac\u660e<\/th>\n<th>\u30c7\u30d5\u30a9\u30eb\u30c8\u5024<\/th>\n<\/tr>\n<tr>\n<td>label<\/td>\n<td>\u4e00\u89a7\u8868\u793a\u7b49\u306e\u540d\u524d<\/td>\n<td>\u300e$post_status\u300f\u306e\u5024<\/td>\n<\/tr>\n<tr>\n<td>label_count<\/td>\n<td>\u4e00\u89a7\u306e\u8a18\u4e8b\u6570<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>exclude_from_search<\/td>\n<td>\u691c\u7d22\u7d50\u679c\u306b\u8868\u793a\u3055\u305b\u308b\u304b<\/td>\n<td>\u300e$internal\u300f\u306e\u5024<\/td>\n<\/tr>\n<tr>\n<td>_builtin<\/td>\n<td>\u7d44\u307f\u8fbc\u307f\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3067\u3042\u308b\u304b<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>public<\/td>\n<td>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306b\u8868\u793a\u3055\u305b\u308b\u304b\u3069\u3046\u304b<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>internal<\/td>\n<td>\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3067\u3057\u304b\u5229\u7528\u3057\u306a\u3044\u304b<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>protected<\/td>\n<td>\u8a18\u4e8b\u3092\u4fdd\u8b77\u3055\u305b\u308b\u304b<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>private<\/td>\n<td>\u8a18\u4e8b\u3092\u975e\u516c\u958b\u306b\u3059\u308b\u304b\u3069\u3046\u304b<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>publicly_queryable<\/td>\n<td>\u516c\u958b\u30af\u30a8\u30ea\u3092\u53ef\u80fd\u306b\u3055\u305b\u308b\u304b\u3069\u3046\u304b<\/td>\n<td>\u300e$public\u300f\u306e\u5024<\/td>\n<\/tr>\n<tr>\n<td>show_in_admin_all_list<\/td>\n<td>\u4e00\u89a7\u306e\u300c\u3059\u3079\u3066\u300d\u306b\u96c6\u8a08\u3055\u305b\u308b\u304b\u3069\u3046\u304b<\/td>\n<td>\u300e$internal\u300f\u3068\u53cd\u5bfe\u306e\u5024<\/td>\n<\/tr>\n<tr>\n<td>show_in_admin_status_list<\/td>\n<td>\u4e00\u89a7\u306b\u8868\u793a\u3055\u305b\u308b\u304b\u3069\u3046\u304b<\/td>\n<td>\u300e$internal\u300f\u3068\u53cd\u5bfe\u306e\u5024<\/td>\n<\/tr>\n<tr>\n<td>date_floating<\/td>\n<td>\u6295\u7a3f\u4f5c\u6210\u65e5\u3092\u5909\u66f4\u3055\u305b\u308b\u304b\u3069\u3046\u304b<\/td>\n<td>false<\/td>\n<\/tr>\n<\/table>\n<h2><span class=\"ez-toc-section\" id=\"%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E6%8A%95%E7%A8%BF%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%E3%81%AE%E8%BF%BD%E5%8A%A0\"><\/span>\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u8ffd\u52a0<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4ee5\u4e0a\u3001WordPress \u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3068\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u8a2d\u5b9a\u3092\u53c2\u8003\u306b\u3057\u306a\u304c\u3089\u3001<br \/>\n\u72ec\u81ea\u306e\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u4f5c\u6210\u3001\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u3053\u308c\u4ee5\u964d\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092 \u300efunctions.php\u300f \u306b\u8a18\u8ff0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u8a2d\u5b9a\u3092\u9069\u5b9c\u5909\u3048\u3066\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>\r\n    add_action('init', 'registerCustomPostStatus');\r\n\r\n    function registerCustomPostStatus()\r\n    {\r\n        register_post_status('geek', array(\r\n            'label'                     => 'WpGeek', \/\/\u7de8\u96c6\u753b\u9762\u7b49\u3067\u8868\u793a\u3055\u308c\u308b\u540d\u524d\r\n            'label_count'               => _n_noop('WpGeek (%s)', 'WpGeek (%s)'),\r\n            'public'                    => false, \/\/\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\r\n            'protected'                 => false, \/\/\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\r\n            'private'                   => false, \/\/\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\r\n            'internal'                  => true,  \/\/\u5916\u90e8\u306b\u516c\u958b\u3057\u306a\u3044\u305f\u3081\u3002\r\n            '_builtin '                 => false, \/\/\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\r\n            'publicly_queryable'        => false, \/\/\u30c7\u30d5\u30a9\u30eb\u30c8\u306f'private'\u3068\u540c\u3058\u5024\r\n            'exclude_from_search'       => false, \/\/\u30c7\u30d5\u30a9\u30eb\u30c8\u306f'internal'\u3068\u540c\u3058\u5024,\u691c\u7d22\u5bfe\u8c61\u5916\u306b\u3057\u305f\u3044\u305f\u3081\u3002\r\n            'show_in_admin_all_list'    => false, \/\/\u30c7\u30d5\u30a9\u30eb\u30c8\u306f'internal'\u3068\u9006\u306e\u5024,\u6295\u7a3f\u4e00\u89a7\u306e\u300c\u3059\u3079\u3066\u300d\u306e\u8a18\u4e8b\u5408\u8a08\u306b\u542b\u307e\u305b\u306a\u3044\u305f\u3081\u3002\r\n            'show_in_admin_status_list' => true, \/\/\u30c7\u30d5\u30a9\u30eb\u30c8\u306f'internal'\u3068\u9006\u306e\u5024,\u6295\u7a3f\u4e00\u89a7\u306e\u30ea\u30b9\u30c8\u306b\u306f\u8868\u793a\u3055\u305b\u305f\u3044\u305f\u3081\u3002\r\n            'date_floating'             => false, \/\/\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\r\n        ));\r\n    }\r\n<\/pre>\n<p>\u8ffd\u52a0\u3057\u305f\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306f\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u306e \u300e$wp_post_statues\u300f \u306b\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u3042\u308b\u304b\u3001\u30c6\u30fc\u30de\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e \u300eindex.php\u300f\u7b49\u306b\u4ee5\u4e0b\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u3066\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n(\u300efunctions.php\u300f \u3067\u300e$wp_post_statues\u300f\u3092\u547c\u3073\u51fa\u3057\u305f\u5834\u5408\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u3057\u304b\u78ba\u8a8d\u304c\u51fa\u6765\u307e\u305b\u3093\u3067\u3057\u305f\u3002)<\/p>\n<pre><?php var_dump($wp_post_statuses); ?><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"%E7%B7%A8%E9%9B%86%E7%94%BB%E9%9D%A2%E3%81%A7%E9%81%B8%E6%8A%9E%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\"><\/span>\u7de8\u96c6\u753b\u9762\u3067\u9078\u629e\u3059\u308b\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u5b9a\u7fa9\u3057\u305f\u3060\u3051\u3067\u306f\u5229\u7528\u3059\u308b\u3053\u3068\u306f\u51fa\u6765\u307e\u305b\u3093\u3002<\/p>\n<p>\u6b21\u306b\u3001\u7de8\u96c6\u753b\u9762\u7b49\u3067\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<sup>[<a href=\"#reference\">6<\/a>]<\/sup><\/p>\n<p>\u6295\u7a3f\u8a18\u4e8b\u306e\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u9078\u629e\u3059\u308b\u7b87\u6240\u306f 2 \u7b87\u6240\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u6295\u7a3f\u306e\u7de8\u96c6\u753b\u9762\u4e0a\u306e\u516c\u958b\u30e1\u30bf\u30dc\u30c3\u30af\u30b9 <sup>[<a href=\"#reference\">7<\/a>]<\/sup><\/li>\n<li>\u7ba1\u7406\u753b\u9762\u4e0a\u306e\u6295\u7a3f\u4e00\u89a7\u306b\u3042\u308b\u30af\u30a4\u30c3\u30af\u7de8\u96c6<sup>[<a href=\"#reference\">8<\/a>]<\/sup><\/li>\n<\/ul>\n<p>WordPress \u306e\u30a8\u30c7\u30a3\u30bf\u306b\u306f <strong>Classic Editor<\/strong>(\u65e7\u30a8\u30c7\u30a3\u30bf)\u3068 <strong>Gutenberg<\/strong>(\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf)\u304c\u3042\u308a\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3082\u305d\u308c\u305e\u308c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u8ffd\u52a0\u65b9\u6cd5\u306f\u69d8\u3005\u3067\u3059\u304c\u3001\u672c\u8a18\u4e8b\u3067\u306f <strong>Classic Editor<\/strong> \u306b\u3064\u3044\u3066\u3001\u8a72\u5f53\u7b87\u6240\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u30d5\u30c3\u30af\u306b <strong>JavaScript<\/strong> \u3092\u8ffd\u52a0\u3057\u3066\u3001<br \/>\n\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Classic_Editor_%E3%81%A7%E3%81%AE%E5%85%AC%E9%96%8B%E3%83%A1%E3%82%BF%E3%83%9C%E3%83%83%E3%82%AF%E3%82%B9\"><\/span>Classic Editor \u3067\u306e\u516c\u958b\u30e1\u30bf\u30dc\u30c3\u30af\u30b9<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4ee5\u4e0b\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3067\u7de8\u96c6\u753b\u9762\u3067\u306e\u9078\u629e\u3092\u51fa\u6765\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre>\r\n    <?php\r\n    add_action('post_submitbox_misc_actions', 'wpGeekPostStatusList');\r\n\r\n    function wpGeekPostStatusList($post)\r\n    {\r\n        $select = '';\r\n        $label = '';\r\n        if ($post->post_status == 'geek') {\r\n            $select = 'option.setAttribute(\"selected\", \"selected\");';\r\n            $label = \"\r\n                const post_status_display = document?.getElementById('post-status-display');\r\n                if (post_status_display != null && post_status_display.textContent != null){\r\n                    post_status_display.textContent = 'WpGeek\u8a18\u4e8b';\r\n                }\r\n                \";\r\n        }\r\n        ?>\r\n        <script>\r\n            window.addEventListener(\"DOMContentLoaded\", function() {\r\n                const postStatus = document.getElementById(\"post_status\");\r\n                const option = document.createElement(\"option\");\r\n                option.text = \"WpGeek\u8a18\u4e8b\";\r\n                <?php echo $select; ?>\r\n                option.setAttribute(\"value\", \"geek\");\r\n                postStatus?.appendChild(option);\r\n                <?php echo $label; ?>;\r\n            });\r\n        <\/script>\r\n        <?php\r\n    }\r\n<\/pre>\n<p>\u8a18\u4e8b\u306e\u7de8\u96c6\u753b\u9762\u3067\u6b21\u306e\u3088\u3046\u306b\u53cd\u6620\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2023\/12\/meta-box-select.png\" alt=\"\" width=\"751\" height=\"446\" class=\"aligncenter size-full wp-image-6113\" srcset=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2023\/12\/meta-box-select.png 751w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2023\/12\/meta-box-select-300x178.png 300w\" sizes=\"(max-width: 751px) 100vw, 751px\" \/><\/p>\n<p>\u4e00\u89a7\u753b\u9762\u3067\u306f\u3053\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002(\u30d1\u30e9\u30e1\u30fc\u30bf\u8a2d\u5b9a\u3067\u300c\u3059\u3079\u3066\u300d\u306b\u96c6\u8a08\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2023\/12\/list-display.png\" alt=\"\" width=\"820\" height=\"112\" class=\"aligncenter size-full wp-image-6112\" srcset=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2023\/12\/list-display.png 820w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2023\/12\/list-display-300x41.png 300w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2023\/12\/list-display-768x105.png 768w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%82%AF%E3%82%A4%E3%83%83%E3%82%AF%E7%B7%A8%E9%9B%86%E7%94%BB%E9%9D%A2\"><\/span>\u30af\u30a4\u30c3\u30af\u7de8\u96c6\u753b\u9762<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4ee5\u4e0b\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3067\u4e00\u89a7\u753b\u9762\u3067\u306e\u9078\u629e\u3092\u51fa\u6765\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre>\r\n    add_action('admin_print_footer_scripts', 'quickEditCustomBoxSelect');\r\n\r\n    function quickEditCustomBoxSelect()\r\n    {\r\n        ?>\r\n        <script>\r\n            window.addEventListener('DOMContentLoaded', function() {\r\n                const postStatus = document.querySelector('select[name=\"_status\"]');\r\n                const option = document.createElement('option');\r\n                option.text = 'WpGeek\u8a18\u4e8b';\r\n                option.setAttribute(\"value\", \"geek\");\r\n                postStatus?.appendChild(option);\r\n            });\r\n        <\/script>\r\n        <?php\r\n    }\r\n<\/pre>\n<p>\u8a18\u4e8b\u306e\u4e00\u89a7\u3067\u7de8\u96c6\u3067\u304d\u308b\u30af\u30a4\u30c3\u30af\u7de8\u96c6\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u53cd\u6620\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2023\/12\/quick-box.png\" alt=\"\" width=\"1399\" height=\"599\" class=\"aligncenter size-full wp-image-6115\" srcset=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2023\/12\/quick-box.png 1399w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2023\/12\/quick-box-300x128.png 300w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2023\/12\/quick-box-1024x438.png 1024w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2023\/12\/quick-box-768x329.png 768w\" sizes=\"(max-width: 1399px) 100vw, 1399px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%82%BB%E3%83%AC%E3%82%AF%E3%83%88%E3%83%9C%E3%83%83%E3%82%AF%E3%82%B9-%E3%83%89%E3%83%AD%E3%83%83%E3%83%97%E3%83%80%E3%82%A6%E3%83%B3\"><\/span>\u30bb\u30ec\u30af\u30c8\u30dc\u30c3\u30af\u30b9-\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u6295\u7a3f\u8a18\u4e8b\u306e\u516c\u958b\u72b6\u614b\u3092\u30ea\u30b9\u30c8\u30c6\u30fc\u30d6\u30eb\u304b\u3089\u9078\u629e\u3057\u3001\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306b\u5909\u66f4\u5f8c\u306b\u3001<br \/>\n\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u30ea\u30b9\u30c8\u30c6\u30fc\u30d6\u30eb\u306b\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<sup>[<a href=\"#reference\">9<\/a>]<\/sup><\/p>\n<pre>\r\n    add_filter('display_post_states', 'addGeekToPostDropdown', 10, 2);\r\n\r\n    function addGeekToPostDropdown($post_states, $post)\r\n    {\r\n        if ('geek' === $post->post_status) {\r\n            $post_states[] = 'WpGeek\u8a18\u4e8b';\r\n        }\r\n        return $post_states;\r\n    }\r\n<\/pre>\n<p>\u7de8\u96c6\u753b\u9762\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u53cd\u6620\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2023\/12\/meta-box-selected.png\" alt=\"\" width=\"604\" height=\"488\" class=\"aligncenter size-full wp-image-6114\" srcset=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2023\/12\/meta-box-selected.png 604w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2023\/12\/meta-box-selected-300x242.png 300w\" sizes=\"(max-width: 604px) 100vw, 604px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%BE%E3%81%A8%E3%82%81\"><\/span>\u307e\u3068\u3081<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>Classic Editor<\/strong> \u3067\u306e\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9<\/p>\n<p>\u79c1\u304c\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u6539\u3081\u3066\u3001\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u624b\u9806\u3092\u7d39\u4ecb\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059<\/p>\n<ol>\n<li><strong>create_initial_post_types<\/strong> \u3067\u5b9a\u7fa9\u3092\u3059\u308b\u3002<\/li>\n<li>\u30a2\u30af\u30b7\u30e7\u30f3\u30d5\u30c3\u30af\u3067\u3001\u8a18\u4e8b\u7de8\u96c6\u753b\u9762\u3068\u4e00\u89a7\u753b\u9762\u3067\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/li>\n<li>\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u3067\u3001\u9078\u629e\u5f8c\u306e\u5207\u308a\u63db\u3048\u8868\u793a\u3067\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/li>\n<\/ol>\n<p>\u6b21\u56de\u306f <strong>Gutenberg<\/strong> \u3067\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u8ffd\u52a0\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2 id=\"reference\"><span class=\"ez-toc-section\" id=\"%E5%8F%82%E8%80%83%E3%83%AA%E3%83%B3%E3%82%AF\"><\/span>\u53c2\u8003\u30ea\u30f3\u30af<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li><a href=\"https:\/\/ja.wordpress.org\/plugins\/publishpress\/\" rel=\"noopener\" target=\"_blank\">\u30d7\u30e9\u30b0\u30a4\u30f3: PublishPress<\/a><\/li>\n<li><a href=\"https:\/\/editflow.org\/features\/custom-statuses\/\" rel=\"noopener\" target=\"_blank\">\u30d7\u30e9\u30b0\u30a4\u30f3: EditFlow<\/a><\/li>\n<li><a href=\"https:\/\/wordpress.org\/documentation\/article\/post-status\/\" rel=\"noopener\" target=\"_blank\">Post Status \u2013 Documentation \u2013 WordPress.org<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/WordPress\/wordpress-develop\/blob\/6.4\/src\/wp-includes\/post.php\" rel=\"noopener\" target=\"_blank\">wordpress-develop\/src\/wp-includes\/post.php at 6.4 \u00b7 WordPress\/wordpress-develop<\/a><\/li>\n<li><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/register_post_status\/\" rel=\"noopener\" target=\"_blank\">register_post_status() | Function | WordPress Developer Resources<\/a> <\/li>\n<li><a href=\"https:\/\/github.com\/WordPress\/wordpress-develop\/blob\/6.3\/src\/wp-admin\/includes\/meta-boxes.php#L30-L412\" rel=\"noopener\" target=\"_blank\">\/src\/wp-admin\/includes\/meta-boxes.php at 6.3 \u00b7 WordPress\/wordpress-develop <\/a><\/li>\n<li><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/post_submitbox_misc_actions\/\" rel=\"noopener\" target=\"_blank\"> | \u30d5\u30c3\u30af | WordPress \u958b\u767a\u8005\u30ea\u30bd\u30fc\u30b9<\/a><\/li>\n<li><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/admin_print_footer_scripts\/\" rel=\"noopener\" target=\"_blank\"> admin_print_footer_scripts | \u30d5\u30c3\u30af | WordPress \u958b\u767a\u8005\u30ea\u30bd\u30fc\u30b9<\/a><\/li>\n<li><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_post_states\/\" rel=\"noopener\" target=\"_blank\">get_post_states() | Function | WordPress Developer Resources<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u300c\u516c\u958b\u300d\u3084\u300c\u975e\u516c\u958b\u300d\u3068\u3044\u3063\u305f\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306b\u72ec\u81ea\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u305f\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u7de8\u96c6\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u958b\u767a\u306e\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"author":1,"featured_media":6131,"parent":0,"menu_order":0,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"class_list":["post-6111","customize","type-customize","status-publish","format-standard","has-post-thumbnail","hentry"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/customize\/6111"}],"collection":[{"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/customize"}],"about":[{"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/types\/customize"}],"author":[{"embeddable":true,"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":7,"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/customize\/6111\/revisions"}],"predecessor-version":[{"id":6132,"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/customize\/6111\/revisions\/6132"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/media\/6131"}],"wp:attachment":[{"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/media?parent=6111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/categories?post=6111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}