{"id":377,"date":"2021-12-22T07:50:20","date_gmt":"2021-12-22T07:50:20","guid":{"rendered":"https:\/\/aki-hamano.blog\/?p=377"},"modified":"2025-10-25T03:55:03","modified_gmt":"2025-10-25T03:55:03","slug":"wp5-9-php","status":"publish","type":"post","link":"https:\/\/aki-hamano.blog\/ja\/2021\/12\/22\/wp5-9-php\/","title":{"rendered":"WordPress5.9\u3067\u8ffd\u52a0\u3055\u308c\u305f\u95a2\u6570\u30fb\u30af\u30e9\u30b9\u30fb\u30a2\u30af\u30b7\u30e7\u30f3\/\u30d5\u30a3\u30eb\u30bf\u2015\u30d5\u30c3\u30af\u307e\u3068\u3081"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2022\u5e741\u670825\u65e5<\/strong>\u306b<strong>WordPress 5.9<\/strong>\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress5.9\u3067\u76ee\u7389\u3068\u306a\u308b\u6a5f\u80fd\u306f<a href=\"https:\/\/developer.wordpress.org\/block-editor\/getting-started\/full-site-editing\/\" target=\"_blank\" rel=\"noreferrer noopener\">Full Site Editing<\/a>\u3067\u3059\u304c\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306fPHP\u30b3\u30fc\u30c9\u306b\u7126\u70b9\u3092\u7d5e\u308a\u3001\u65b0\u305f\u306b\u8ffd\u52a0\u3055\u308c\u305f\u95a2\u6570\u30fb\u30a2\u30af\u30b7\u30e7\u30f3\/\u30d5\u30a3\u30eb\u30bf\u2015\u30d5\u30c3\u30af\u30fb\u30af\u30e9\u30b9\u3092\u307e\u3068\u3081\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3042\u308f\u305b\u3066\u3001WordPress5.9\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u305f\u95a2\u6570\u30fb\u30af\u30e9\u30b9\u30fb\u30a2\u30af\u30b7\u30e7\u30f3\/\u30d5\u30a3\u30eb\u30bf\u2015\u30d5\u30c3\u30af\u3001\u304a\u3088\u3073\u975e\u63a8\u5968\u3068\u306a\u3063\u305f\u3082\u306e\u3082\u6700\u5f8c\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6761\u4ef6\u3068\u3057\u3066\u3001WordPress\u672c\u4f53\u306e\u30bd\u30fc\u30b9\u5185\u3067\u300c<strong>PHP\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u3067\u3001\u30b3\u30e1\u30f3\u30c8\u306b <code>@since 5.9.0<\/code> \u3068\u8a18\u8f09\u304c\u3042\u308b\u3082\u306e<\/strong>\u300d\u3092\u624b\u52d5\u3067\u62bd\u51fa\u3057\u3066\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6ce8\u610f\u70b9<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30de\u30a4\u30ca\u30fc\u30ea\u30ea\u30fc\u30b9\u306b\u3088\u308a\u3001\u4ed5\u69d8\u304c\u82e5\u5e72\u5909\u308f\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u6700\u65b0\u306e\u4ed5\u69d8\u306f\u3001<a href=\"https:\/\/github.com\/WordPress\/wordpress-develop\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress\u306e\u958b\u767a\u30ea\u30dd\u30b8\u30c8\u30ea<\/a>\u307e\u305f\u306fWordPress.org\u306e\u30ea\u30ea\u30fc\u30b9\u30cb\u30e5\u30fc\u30b9\uff08<a href=\"https:\/\/make.wordpress.org\/core\/\" target=\"_blank\" rel=\"noreferrer noopener\">Make WordPress Core<\/a>\uff09\u306a\u3069\u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n\n\n\n<li>\u72ec\u65ad\u3067\u300c\u3053\u308c\u306f\u4f7f\u3048\u305d\u3046\u300d\u300c\u91cd\u8981\u305d\u3046\u300d\u3068\u601d\u3063\u305f\u9805\u76ee\u306b\u3064\u3044\u3066\u306f\u3001\u2605\u30de\u30fc\u30af\u3092\u4ed8\u3051\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u95a2\u6570<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u95a2\u6570\u306b\u95a2\u3057\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u3082\u306e\u3092\u9664\u5916\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30b3\u30e1\u30f3\u30c8\u306e\u30a2\u30af\u30bb\u30b9\u4fee\u98fe\u5b50\u304cprivate\u306e\u3082\u306e\uff08 <code>@access private<\/code> \uff09<\/li>\n\n\n\n<li>\u95a2\u6570\u540d\u304c\u30a2\u30f3\u30c0\u30fc\u30d0\u30fc\u59cb\u307e\u308a<\/li>\n\n\n\n<li>\u304a\u305d\u3089\u304f\u5185\u90e8\u7684\u306a\u5229\u7528\u306b\u3068\u3069\u307e\u308b\u3082\u306e<\/li>\n\n\n\n<li>\u5185\u90e8\u306b\u30d5\u30a3\u30eb\u30bf\u2015\u30d5\u30c3\u30af\u304c\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u76f4\u63a5\u547c\u3076\u4e8b\u306f\u60f3\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u3082\u306e<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">wp_enqueue_block_style\u2605<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u7279\u5b9a\u306e\u30d6\u30ed\u30c3\u30af\u306e\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3092\u30a8\u30f3\u30ad\u30e5\u30fc\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d6\u30ed\u30c3\u30af\u30c6\u30fc\u30de\uff08\u30d5\u30eb\u30b5\u30a4\u30c8\u7de8\u96c6\u306b\u5bfe\u5fdc\u3057\u305f\u30c6\u30fc\u30de\uff09\u3067\u306f\u3001 \u30d6\u30ed\u30c3\u30af\u306eCSS\u304c\u30d6\u30ed\u30c3\u30af\u5358\u4f4d\u3067\u5206\u5272\u3055\u308c\u3001\u300c\u305d\u306e\u30da\u30fc\u30b8\u4e0a\u3067\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u3066\u3044\u308b\u30d6\u30ed\u30c3\u30af\u306eCSS\u300d\u306e\u307f\u304c\u3001\u30a4\u30f3\u30e9\u30a4\u30f3\u3067\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u95a2\u6570\u3092\u4f7f\u3046\u3068\u3001\u30a4\u30f3\u30e9\u30a4\u30f3\u3067\u51fa\u529b\u3055\u308c\u308b\u30b3\u30a2\u306e\u30d6\u30ed\u30c3\u30af\u7528CSS\u306b\u3001\u30c6\u30fc\u30de\u3067\u4f5c\u6210\u3057\u305f\u30d6\u30ed\u30c3\u30af\u7528CSS\u3092\u4ed8\u52a0\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3068\u3057\u3066\u3001\u30b3\u30a2\u306e\u753b\u50cf\u30d6\u30ed\u30c3\u30af\u306b\u30c6\u30fc\u30de\u5074\u3067\u4f5c\u3063\u305f\u30b9\u30bf\u30a4\u30eb\u3092\u4ed8\u52a0\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-css\"><code>\/* \u30c6\u30fc\u30de\u5074\u3067\u30d6\u30ed\u30c3\u30af\u7528\u306eCSS\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u30b9\u30bf\u30a4\u30eb\u3092\u8a18\u8ff0\u3059\u308b *\/\n.wp-block-image {\n    border: 1px solid #000;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306b\u30c6\u30fc\u30de\u5074\u3067\u3001\u8ffd\u52a0\u306e\u30d6\u30ed\u30c3\u30af\u30b9\u30bf\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30a8\u30f3\u30ad\u30e5\u30fc\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_load_separate_theme_block_assets() {\n    wp_enqueue_block_style(\n        \/\/ CSS\u3092\u4ed8\u52a0\u3057\u305f\u3044\u30d6\u30ed\u30c3\u30af\u306e\u30cf\u30f3\u30c9\u30eb\u540d\n        'core\/image',\n        array(\n            \/\/ \u8ffd\u52a0\u3059\u308b\u30c6\u30fc\u30de\u306eCSS\u306e\u30cf\u30f3\u30c9\u30eb\u540d\n            'handle' =&gt; 'my-theme-image',\n            \/\/ CSS\u30d5\u30a1\u30a4\u30eb\u306eURL\n            'src' &nbsp;  =&gt; get_theme_file_uri( 'image.css' ),\n        )\n    );\n}\nadd_action( 'after_setup_theme', 'custom_load_separate_theme_block_assets' );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3059\u308b\u3068 <code>head<\/code> \u30bf\u30b0\u5185\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30a2\u306e\u30a4\u30f3\u30e9\u30a4\u30f3\u30b9\u30bf\u30a4\u30eb\u306e\u5f8c\u306bCSS\u30d5\u30a1\u30a4\u30eb\u304c\u8aad\u307f\u8fbc\u307e\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002 \uff08\u30b3\u30a2\u306e\u30b9\u30bf\u30a4\u30eb\u306f\u4e00\u90e8\u629c\u7c8b\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code lang-html\"><code>&lt;!-- \u30b3\u30a2\u306e\u30b9\u30bf\u30a4\u30eb --&gt;\n&lt;style id='wp-block-image-inline-css'&gt;\n.wp-block-image figcaption {\n &nbsp; &nbsp;color: #555;\n &nbsp; &nbsp;font-size: 13px;\n &nbsp; &nbsp;text-align: center;\n}\n.is-dark-theme .wp-block-image figcaption {\n &nbsp; &nbsp;color: rgba(255, 255, 255, 0.65);\n}\n&lt;\/style&gt;\n\u200b\n&lt;!-- \u30c6\u30fc\u30de\u306e\u30b9\u30bf\u30a4\u30eb --&gt;\n&lt;link rel='stylesheet' id='my-theme-image-css' &nbsp;href='http:\/\/example.com\/wp-content\/themes\/mytheme\/image.css?ver=5.9' media='all' \/&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001<code>wp_enqueue_block_style<\/code> \u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3067<strong>CSS\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u6307\u5b9a<\/strong>\u3059\u308b\u4e8b\u3067\u3001\u30a4\u30f3\u30e9\u30a4\u30f3\u30b9\u30bf\u30a4\u30eb\u3067\u4ed8\u52a0\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_load_separate_theme_block_assets() {\n &nbsp;  wp_enqueue_block_style(\n &nbsp; &nbsp; &nbsp;  \/\/ CSS\u3092\u4ed8\u52a0\u3057\u305f\u3044\u30d6\u30ed\u30c3\u30af\u306e\u30cf\u30f3\u30c9\u30eb\u540d\n &nbsp; &nbsp; &nbsp;  'core\/image',\n &nbsp; &nbsp; &nbsp;  array(\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  \/\/ \u8ffd\u52a0\u3059\u308b\u30c6\u30fc\u30de\u306eCSS\u306e\u30cf\u30f3\u30c9\u30eb\u540d\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'handle' =&gt; 'my-theme-image',\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  \/\/ CSS\u30d5\u30a1\u30a4\u30eb\u306eURL\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'src' &nbsp;  =&gt; get_theme_file_uri( 'image.css' ),\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  \/\/ \uff08\u8ffd\u52a0\uff09CSS\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'path' &nbsp; =&gt; get_theme_file_path( 'image.css' ),\n &nbsp; &nbsp; &nbsp;  )\n &nbsp;  );\n}\nadd_action( 'after_setup_theme', 'custom_load_separate_theme_block_assets' );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u30c6\u30fc\u30de\u5074\u3067\u30a8\u30f3\u30ad\u30e5\u30fc\u3057\u305f\u30b9\u30bf\u30a4\u30eb\u3082\u30a4\u30f3\u30e9\u30a4\u30f3\u3067\u51fa\u529b\u3055\u308c\u307e\u3059\u3002 \uff08\u30b3\u30a2\u306e\u30b9\u30bf\u30a4\u30eb\u306f\u4e00\u90e8\u629c\u7c8b\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code lang-html\"><code>&lt;!-- \u30b3\u30a2\u306e\u30b9\u30bf\u30a4\u30eb --&gt;\n&lt;style id='wp-block-image-inline-css'&gt;\n.wp-block-image figcaption {\n &nbsp; &nbsp;color: #555;\n &nbsp; &nbsp;font-size: 13px;\n &nbsp; &nbsp;text-align: center;\n}\n.is-dark-theme .wp-block-image figcaption {\n &nbsp; &nbsp;color: rgba(255, 255, 255, 0.65);\n}\n&lt;\/style&gt;\n\u200b\n&lt;!-- \u30c6\u30fc\u30de\u306e\u30b9\u30bf\u30a4\u30eb --&gt;\n&lt;style id='my-theme-image-inline-css'&gt;\n.wp-block-image {\n &nbsp; &nbsp;border: 1px solid #000;\n}\n&lt;\/style&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u305f\u3060\u3057\u3001\u3053\u308c\u306f\u30d6\u30ed\u30c3\u30af\u30c6\u30fc\u30de\u3067\u306e\u8a71\u3067\u3001\u30af\u30e9\u30b7\u30c3\u30af\u30c6\u30fc\u30de\u306b\u304a\u3044\u3066\u30d6\u30ed\u30c3\u30af\u306eCSS\u3092\u5206\u5272\u3057\u3066\u51fa\u529b\u3059\u308b\u5834\u5408\u306f\u3001WordPress5.8\u3067\u8ffd\u52a0\u3055\u308c\u305f <a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/should_load_separate_core_block_assets\/\" target=\"_blank\" rel=\"noreferrer noopener\">should_load_separate_core_block_assets<\/a> \u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u3092\u4f7f\u3063\u3066\u6709\u52b9\u5316\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>add_filter( 'should_load_separate_core_block_assets', '__return_true' );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u30af\u30e9\u30b7\u30c3\u30af\u30c6\u30fc\u30de\u306e\u5834\u5408\u306f\u30d6\u30ed\u30c3\u30af\u30c6\u30fc\u30de\u3068\u7570\u306a\u308a\u3001<code>head<\/code> \u30bf\u30b0\u5185\u3067\u306f\u306a\u304f <code>body<\/code> \u9589\u3058\u30bf\u30b0\u306e\u524d\u3067\u8aad\u307f\u8fbc\u307e\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/make.wordpress.org\/core\/2021\/12\/15\/using-multiple-stylesheets-per-block\/\" target=\"_blank\" rel=\"noreferrer noopener\">Using multiple stylesheets per block \u2013 Make WordPress Core<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/make.wordpress.org\/core\/2021\/07\/01\/block-styles-loading-enhancements-in-wordpress-5-8\/\" target=\"_blank\" rel=\"noreferrer noopener\">Block-styles loading enhancements in WordPress 5.8 \u2013 Make WordPress Core<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">wp_get_global_settings<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b3\u30a2\u30c7\u30fc\u30bf\u3001\u30c6\u30fc\u30de\u30c7\u30fc\u30bf\u3001\u30e6\u30fc\u30b6\u30fc\u30c7\u30fc\u30bf\u3092\u7d50\u5408\u3057\u305f\u8a2d\u5b9a\u3092\u914d\u5217\u3067\u8fd4\u5374\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c1\u5f15\u6570\u3067\u3001\u53d6\u5f97\u3059\u308b\u8a2d\u5b9a\u3092\u9650\u5b9a\u3059\u308b\u4e8b\u3082\u51fa\u6765\u307e\u3059\u3002 \u307e\u305f\u7b2c2\u5f15\u6570\u3082\u3042\u308f\u305b\u3066\u6307\u5b9a\u3059\u308b\u4e8b\u3067\u3001\u30d6\u30ed\u30c3\u30af\u7b49\u7d30\u304b\u3044\u5358\u4f4d\u3067\u8a2d\u5b9a\u3092\u53d6\u5f97\u3059\u308b\u4e8b\u3082\u51fa\u6765\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>\/\/ \u5168\u3066\u306e\u8a2d\u5b9a\u3092\u53d6\u5f97\nvar_dump( wp_get_global_settings() );\n\u200b\n\/\/ \u2193\u2193\u2193\uff08\u51fa\u529b\u4f8b\uff09\n\u200b\narray(6) {\n  &#91;\"appearanceTools\"]=&gt;\n &nbsp;bool(false)\n  &#91;\"border\"]=&gt;\n &nbsp;array(4) {\n &nbsp;  &#91;\"color\"]=&gt;\n &nbsp; &nbsp;bool(true)\n &nbsp;  &#91;\"radius\"]=&gt;\n &nbsp; &nbsp;bool(true)\n &nbsp;  &#91;\"style\"]=&gt;\n &nbsp; &nbsp;bool(true)\n &nbsp;  &#91;\"width\"]=&gt;\n &nbsp; &nbsp;bool(true)\n  }\n  &#91;\"color\"]=&gt;\n &nbsp;array(11) {\n &nbsp;  &#91;\"background\"]=&gt;\n &nbsp; &nbsp;bool(true)\n &nbsp;  &#91;\"custom\"]=&gt;\n &nbsp; &nbsp;bool(true)\n\/\/ ....\n &nbsp; &nbsp;\n &nbsp; &nbsp;\n\/\/ \u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u95a2\u3059\u308b\u30b9\u30bf\u30a4\u30eb\u306e\u307f\u3092\u53d6\u5f97\nvar_dump( wp_get_global_settings( array( 'layout' ) ) );\n\u200b\n\/\/ \u2193\u2193\u2193\uff08\u51fa\u529b\u4f8b\uff09\n\u200b\narray(2) {\n  &#91;\"contentSize\"]=&gt;\n &nbsp;string(5) \"650px\"\n  &#91;\"wideSize\"]=&gt;\n &nbsp;string(6) \"1000px\"\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">wp_get_global_styles<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b3\u30a2\u30c7\u30fc\u30bf\u3001\u30c6\u30fc\u30de\u30c7\u30fc\u30bf\u3001\u30e6\u30fc\u30b6\u30fc\u30c7\u30fc\u30bf\u3092\u7d50\u5408\u3057\u305f\u30b9\u30bf\u30a4\u30eb\u3092\u914d\u5217\u3067\u8fd4\u5374\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c1\u5f15\u6570\u3067\u3001\u53d6\u5f97\u3059\u308b\u30b9\u30bf\u30a4\u30eb\u3092\u9650\u5b9a\u3059\u308b\u4e8b\u3082\u51fa\u6765\u307e\u3059\u3002 \u307e\u305f\u7b2c2\u5f15\u6570\u3082\u3042\u308f\u305b\u3066\u6307\u5b9a\u3059\u308b\u4e8b\u3067\u3001\u30d6\u30ed\u30c3\u30af\u7b49\u7d30\u304b\u3044\u5358\u4f4d\u3067\u30b9\u30bf\u30a4\u30eb\u3092\u53d6\u5f97\u3059\u308b\u4e8b\u3082\u51fa\u6765\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>\/\/ \u5168\u3066\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u53d6\u5f97\nvar_dump( wp_get_global_styles() );\n\u200b\n\/\/ \u2193\u2193\u2193\uff08\u51fa\u529b\u4f8b\uff09\n\u200b\narray(4) {\n  &#91;\"spacing\"]=&gt;\n &nbsp;array(1) {\n &nbsp;  &#91;\"blockGap\"]=&gt;\n &nbsp; &nbsp;string(6) \"1.5rem\"\n  }\n  &#91;\"color\"]=&gt;\n &nbsp;array(2) {\n &nbsp;  &#91;\"background\"]=&gt;\n &nbsp; &nbsp;string(36) \"var(--wp--preset--color--background)\"\n &nbsp;  &#91;\"text\"]=&gt;\n &nbsp; &nbsp;string(36) \"var(--wp--preset--color--foreground)\"\n  }\n\/\/ ....\n &nbsp; &nbsp;\n &nbsp; &nbsp;\n\/\/ \u8272\u306b\u95a2\u3059\u308b\u30b9\u30bf\u30a4\u30eb\u306e\u307f\u3092\u53d6\u5f97\nvar_dump( wp_get_global_styles( array( 'color' ) ) );\n\u200b\n\/\/ \u2193\u2193\u2193\uff08\u51fa\u529b\u4f8b\uff09\n\u200b\narray(2) {\n  &#91;\"background\"]=&gt;\n &nbsp;string(36) \"var(--wp--preset--color--background)\"\n  &#91;\"text\"]=&gt;\n &nbsp;string(36) \"var(--wp--preset--color--foreground)\"\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">wp_get_global_stylesheet<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b3\u30a2\u30c7\u30fc\u30bf\u3001\u30c6\u30fc\u30de\u30c7\u30fc\u30bf\u3001\u30e6\u30fc\u30b6\u30fc\u30c7\u30fc\u30bf\u3092\u7d50\u5408\u3057\u305fCSS\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3092\u8fd4\u5374\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d1\u30e9\u30e1\u30fc\u30bf\u306b <code>variables<\/code> \/ <code>styles<\/code> \/ <code>presets<\/code> \u3092\u914d\u5217\u3067\u6307\u5b9a\u3059\u308b\u4e8b\u3067\u3001\u5404\u30bf\u30a4\u30d7\u306b\u5c5e\u3059\u308b\u30b9\u30bf\u30a4\u30eb\u306e\u307f\u3092\u8fd4\u5374\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u3046\u3061 <code>styles<\/code> \u306b\u3064\u3044\u3066\u306f\u3001\u30d6\u30ed\u30c3\u30af\u30c6\u30fc\u30de\u306e\u5834\u5408\u306e\u307f\u6307\u5b9a\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Twenty Twenty Two\u306e\u5834\u5408\u306e\u51fa\u529b\u4f8b\u306f\u4ee5\u4e0b\u3068\u306a\u308a\u307e\u3059\u3002 \uff08\u5404CSS\u30ab\u30b9\u30bf\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\u3001\u30bb\u30ec\u30af\u30bf\u306b\u306f\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u304c\u5927\u91cf\u306b\u3042\u308b\u305f\u3081\u3001\u4e00\u90e8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u307f\u629c\u7c8b\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code lang-css\"><code>\/* CSS\u30ab\u30b9\u30bf\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u307f\u3092\u51fa\u529b *\/\n\/* var_dump( wp_get_global_stylesheet( array( 'variables' ) ) ); *\/\n\nbody{\n\t--wp--preset--color--black: #000000;\n\t--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);\n\t--wp--preset--duotone--dark-grayscale: url('#wp-duotone-dark-grayscale');\n\t--wp--preset--font-size--small: 1rem;\n\t--wp--preset--font-family--system-font: -apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;\n\t--wp--custom--spacing--small: max(1.25rem, 5vw);\n\t--wp--custom--typography--font-size--gigantic: clamp(3rem, 6vw, 4rem);\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code lang-css\"><code>\/* \u30d6\u30ed\u30c3\u30af\u30c6\u30fc\u30de\u306e\u30b9\u30bf\u30a4\u30eb\u306e\u307f\u3092\u51fa\u529b *\/\n\/* var_dump( wp_get_global_stylesheet( array( 'styles' ) ) ); *\/\n\nbody{\n    background-color: var(--wp--preset--color--background);\n    color: var(--wp--preset--color--foreground);\n    font-family: var(--wp--preset--font-family--system-font);\n    font-size: var(--wp--preset--font-size--normal);\n    line-height: var(--wp--custom--typography--line-height--normal);\n    --wp--style--block-gap: 1.5rem;\n}\nbody {\n    margin: 0;\n}\n.wp-site-blocks &gt; .alignleft {\n    float: left;\n\tmargin-right: 2em;\n}\n.wp-site-blocks &gt; * {\n    margin-top: 0;\n\tmargin-bottom: 0;\n}\n.wp-site-blocks &gt; * + * {\n    margin-top: var( --wp--style--block-gap );\n}\nh1{\n\tfont-family: var(--wp--preset--font-family--source-serif-pro);\n\tfont-size: var(--wp--custom--typography--font-size--colossal);\n\tfont-weight: 300;\n\tline-height: var(--wp--custom--typography--line-height--tiny);\n}\n\/* h2, h3, h4, h5, h6... *\/\na{\n\tcolor: var(--wp--preset--color--foreground);\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code lang-css\"><code>\/* \u30d7\u30ea\u30bb\u30c3\u30c8\u30b9\u30bf\u30a4\u30eb\u306e\u307f\u3092\u51fa\u529b *\/\n\/* var_dump( wp_get_global_stylesheet( array( 'presets' ) ) ); *\/\n\n.has-black-color{\n\tcolor: var(--wp--preset--color--black) !important;\n}\n.has-foreground-color{\n\tcolor: var(--wp--preset--color--foreground) !important;\n}\n.has-background-color{\n\tcolor: var(--wp--preset--color--background) !important;\n}\n.has-black-background-color{\n\tbackground-color: var(--wp--preset--color--black) !important;\n}\n.has-black-border-color{\n\tborder-color: var(--wp--preset--color--black) !important;\n}\n.has-vivid-cyan-blue-to-vivid-purple-gradient-background{\n\tbackground: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;\n}\n.has-small-font-size{\n\tfont-size: var(--wp--preset--font-size--small) !important;\n}\n.has-system-font-font-family{\n\tfont-family: var(--wp--preset--font-family--system-font) !important;\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">wp_get_post_revisions_url<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress\u3067\u306f\u3001\u73fe\u5728\u306e\u30ea\u30d3\u30b8\u30e7\u30f3\u3068\u904e\u53bb\u306e\u30ea\u30d3\u30b8\u30e7\u30f3\u3092\u6bd4\u8f03\u30fb\u5fa9\u5143\u3059\u308b\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u95a2\u6570\u306f\u305d\u306e\u30ea\u30d3\u30b8\u30e7\u30f3\uff08\u3092\u6bd4\u8f03\u3059\u308b\u30da\u30fc\u30b8\uff09\u306eURL\u3092\u8fd4\u5374\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/52095\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 52095 \u2013 WordPress Trac<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/make.wordpress.org\/core\/2021\/12\/13\/posts-post-types-and-taxonomy-changes-in-wordpress-5-9\/#new-function-to-get-the-url-for-existing-revisions-of-a-post-wp-get-post-revisions-url\" target=\"_blank\" rel=\"noreferrer noopener\">Title: Posts, Post types and Taxonomy changes in WordPress 5.9 \u2013 Make WordPress Core<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">wp_get_sidebar<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30b5\u30a4\u30c9\u30d0\u30fc\u306e\u4e2d\u304b\u3089\u3001\u30b5\u30a4\u30c9\u30d0\u30fcID\u3092\u6307\u5b9a\u3057\u3066\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>var_dump( wp_get_sidebar( 'sidebar-1' ) );\n\n\/\/ \u2193\u2193\u2193\uff08\u51fa\u529b\u4f8b\uff09\n\narray(11) {\n  &#91;\"name\"]=&gt;\n  string(12) \"\u30d5\u30c3\u30bf\u30fc\"\n  &#91;\"id\"]=&gt;\n  string(9) \"sidebar-1\"\n  &#91;\"description\"]=&gt;\n  string(93) \"\u30d5\u30c3\u30bf\u30fc\u306b\u8868\u793a\u3055\u305b\u308b\u306b\u306f\u3053\u3053\u306b\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002\"\n  &#91;\"class\"]=&gt;\n  string(0) \"\"\n  &#91;\"before_widget\"]=&gt;\n  string(39) \"&lt;section id=\"%1$s\" class=\"widget %2$s\"&gt;\"\n  &#91;\"after_widget\"]=&gt;\n  string(10) \"&lt;\/section&gt;\"\n  &#91;\"before_title\"]=&gt;\n  string(25) \"&lt;h2 class=\"widget-title\"&gt;\"\n  &#91;\"after_title\"]=&gt;\n  string(5) \"&lt;\/h2&gt;\"\n  &#91;\"before_sidebar\"]=&gt;\n  string(0) \"\"\n  &#91;\"after_sidebar\"]=&gt;\n  string(0) \"\"\n  &#91;\"show_in_rest\"]=&gt;\n  bool(false)\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">wp_is_block_theme \u2605<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u73fe\u5728\u6709\u52b9\u306a\u30c6\u30fc\u30de\u304c\u30d6\u30ed\u30c3\u30af\u30c6\u30fc\u30de\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3057\u307e\u3059\u3002 \u30c6\u30fc\u30de\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b <code>\/block-templates\/index.html<\/code> \u307e\u305f\u306f <code>\/templates\/index.html<\/code> \u304c\u5b58\u5728\u3057\u3001\u8aad\u307f\u8fbc\u307f\u53ef\u80fd\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070\u30d7\u30e9\u30b0\u30a4\u30f3\u5074\u3067\u3001\u30af\u30e9\u30b7\u30c3\u30af\u30c6\u30fc\u30de\u30fb\u30d6\u30ed\u30c3\u30af\u30c6\u30fc\u30de\u306b\u3088\u3063\u3066\u51e6\u7406\u3092\u5207\u308a\u5206\u3051\u305f\u3044\u6642\u306b\u4f7f\u3048\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/52330\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 52330 \u2013 WordPress Trac<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">wp_json_file_decode \u2605<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">JSON\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u3001\u9023\u60f3\u914d\u5217\u307e\u305f\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5909\u63db\u3057\u307e\u3059\u3002 \u7b2c\u4e8c\u5f15\u6570\u306e <code>$options<\/code> \u3067\u3001<code>associative<\/code> \u304c <code>true<\/code> \u306a\u3089\u9023\u60f3\u914d\u5217\u306b\u3001<code>false<\/code> \u306a\u3089\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5909\u63db\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>{\n\t\"name\": \"Taro Yamada\",\n\t\"tel\": \"0120-111-111\",\n\t\"address\": {\n\t\t\"zipCd\": \"111-1111\",\n\t\t\"pref\": \"Tokyo\",\n\t\t\"city\": \"Shinjuku\"\n\t}\n}\n\n\/\/ \u2193\u2193\u2193\n\n\/\/ JSON\u30d5\u30a1\u30a4\u30eb\u3092\u9023\u60f3\u914d\u5217\u306b\u5909\u63db\u3059\u308b\n$hoge = wp_json_file_decode( '\/path\/to\/test.json', array( 'associative' =&gt; true ) );\nvar_dump( $hoge );\n\n\/\/ \u2193\u2193\u2193\n\narray(3) {\n  &#91;\"name\"]=&gt;\n  string(11) \"Taro Yamada\"\n  &#91;\"tel\"]=&gt;\n  string(12) \"0120-111-111\"\n  &#91;\"address\"]=&gt;\n  array(3) {\n    &#91;\"zipCd\"]=&gt;\n    string(8) \"111-1111\"\n    &#91;\"pref\"]=&gt;\n    string(5) \"Tokyo\"\n    &#91;\"city\"]=&gt;\n    string(8) \"Shinjuku\"\n  }\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">wp_list_users \u2605<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30e6\u30fc\u30b6\u30fc\u4e00\u89a7\u3092\u8868\u793a\u3057\u307e\u3059\u3002 \u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u5404\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3068\u6982\u8981\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>wp_list_users(\n\tarray(\n\t\t'orderby'       =&gt; 'name', \/\/ \u3069\u306e\u9805\u76ee\u3067\u30bd\u30fc\u30c8\u3059\u308b\u304b\uff08nicename, email, url...\uff09\n\t\t'order'         =&gt; 'ASC',  \/\/ \u30bd\u30fc\u30c8\u9806\uff08ASC \/ DESC\uff09\n\t\t'number'        =&gt; '',     \/\/ \u6700\u5927\u30e6\u30fc\u30b6\u30fc\u6570\n\t\t'exclude_admin' =&gt; true,   \/\/ \u7ba1\u7406\u8005\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u9664\u5916\u3059\u308b\u304b\u3069\u3046\u304b\n\t\t'show_fullname' =&gt; false,  \/\/ \u30d5\u30eb\u30cd\u30fc\u30e0\u3067\u8868\u793a\u3059\u308b\u304b\u3069\u3046\u304b\n\t\t'feed'          =&gt; '',     \/\/ \u30d5\u30a3\u30fc\u30c9\u30ea\u30f3\u30af\u306b\u8868\u793a\u3059\u308b\u30c6\u30ad\u30b9\u30c8\n\t\t'feed_image'    =&gt; '',     \/\/ \u30d5\u30a3\u30fc\u30c9\u30ea\u30f3\u30af\u306b\u8868\u793a\u3059\u308b\u753b\u50cf\n\t\t'feed_type'     =&gt; '',     \/\/ \u30d5\u30a3\u30fc\u30c9\u30ea\u30f3\u30af\u306e\u7a2e\u985e\uff08rss2 \u7b49\uff09\n\t\t'echo'          =&gt; true,   \/\/ \u51fa\u529b\u3059\u308b\u304b\u3069\u3046\u304b\n\t\t'style'         =&gt; 'list', \/\/ 'list'\u306e\u5834\u5408\u306f\u5404\u30e6\u30fc\u30b6\u30fc\u304cli\u30bf\u30b0\u3067\u56f2\u307e\u308c\u3001'list'\u4ee5\u5916\u306e\u5834\u5408\u306f\u30ab\u30f3\u30de\u3067\u533a\u5207\u3089\u308c\u308b\n\t\t'html'          =&gt; true,   \/\/ HTML\u5f62\u5f0f\u3067\u8868\u793a\u3059\u308b\u304b\u3069\u3046\u304b\n\t\t'exclude'       =&gt; '',     \/\/ \u9664\u5916\u3059\u308b\u30e6\u30fc\u30b6\u30fcID\u4e00\u89a7\n\t\t'include'       =&gt; '',     \/\/ \u542b\u3081\u308b\u30e6\u30fc\u30b6\u30fcID\u4e00\u89a7\n\t)\n);<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/52064\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 52064 \u2013 WordPress Trac<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">default_wp_template_part_areas \u2605<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u30a8\u30ea\u30a2\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d6\u30ed\u30c3\u30af\u30c6\u30fc\u30de\u3067\u306f\u3001\u300c\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u300d\u3068\u3044\u3046\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3084\u30da\u30fc\u30b8\u5171\u901a\u3067\u4f7f\u7528\u51fa\u6765\u308b\u30d6\u30ed\u30c3\u30af\u304c\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u300c\u4e00\u822c\uff08general\uff09\u300d\u300c\u30d8\u30c3\u30c0\u30fc\uff08header\uff09\u300d\u300c\u30d5\u30c3\u30bf\u30fc\uff08footer\uff09\u300d\u306e\u4e09\u3064\u306e\u30a8\u30ea\u30a2\u3044\u305a\u308c\u304b\u306b\u5c5e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001<code>theme.json<\/code> \u3067\u30ab\u30b9\u30bf\u30e0\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u5b9a\u7fa9\u3059\u308b\u6642\u3084\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u65b0\u898f\u4f5c\u6210\u30fb\u7de8\u96c6\u3059\u308b\u6642\u306b\u3001\u300c\u3069\u306e\u30a8\u30ea\u30a2\u306b\u5c5e\u3059\u308b\u304b\u300d\u3092\u6c7a\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"527\" height=\"587\" src=\"https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_01.png\" alt=\"\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u4f5c\u6210\" class=\"wp-image-916\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"281\" height=\"288\" src=\"https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_02.png\" alt=\"\u3069\u306e\u30a8\u30ea\u30a2\u306b\u5c5e\u3059\u308b\u304b\" class=\"wp-image-917\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u3092\u4f7f\u3046\u3068\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30a8\u30ea\u30a2\u4e00\u89a7\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u305f\u308a\u3001\u65b0\u3057\u3044\u30a8\u30ea\u30a2\u3092\u8ffd\u52a0\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_default_wp_template_part_areas( $areas ) {\n\t\/\/ \u300c\u30d8\u30c3\u30c0\u30fc\u300d\u30a8\u30ea\u30a2\u306e\u30e9\u30d9\u30eb\u3092\u5909\u66f4\u3059\u308b\n\t$header_key = array_search( 'header', array_column( $areas, 'area' ) );\n\tif ( $header_key ) {\n\t\t$areas&#91; $header_key ]&#91;'label'] = '\u30ab\u30b9\u30bf\u30e0\u30d8\u30c3\u30c0\u30fc';\n\t}\n\n\t\/\/ \u65b0\u3057\u3044\u30a8\u30ea\u30a2\u3092\u8ffd\u52a0\u3059\u308b\n\t$areas&#91;] = array(\n\t\t'area'        =&gt; 'banner',       \/\/ \u30a8\u30ea\u30a2\u540d\n\t\t'label'       =&gt; '\u30d0\u30ca\u30fc',        \/\/ \u30e9\u30d9\u30eb\n\t\t'description' =&gt; '\u30d0\u30ca\u30fc\u30a8\u30ea\u30a2',   \/\/ \u8aac\u660e\u6587\n\t\t'icon'        =&gt; 'layout',       \/\/ \u30a2\u30a4\u30b3\u30f3\n\t\t'area_tag'    =&gt; 'article',      \/\/ \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u306eHTML\u30bf\u30b0\n\t);\n\n\treturn $areas;\n}\nadd_filter( 'default_wp_template_part_areas', 'custom_default_wp_template_part_areas' );<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"514\" height=\"645\" src=\"https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_03.png\" alt=\"\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u4f5c\u6210\" class=\"wp-image-918\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001\u30c6\u30fc\u30de\u306b\u540c\u68b1\u3057\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u3069\u306e\u30a8\u30ea\u30a2\u306b\u5272\u308a\u5f53\u3066\u308b\u304b\u306b\u3064\u3044\u3066\u306f <code>theme.json<\/code> \u306e <code>templateParts<\/code> \u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u5b9a\u7fa9\u3057\u307e\u3059\u304c\u3001\u3053\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u3067\u8ffd\u52a0\u3057\u305f\u30a8\u30ea\u30a2\u3092\u6307\u5b9a\u3059\u308b\u4e8b\u3082\u51fa\u6765\u307e\u3059\u3002 \u203b\u4e8b\u524d\u306b\u3001\u30c6\u30fc\u30de\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e <code>parts<\/code> \u30d5\u30a9\u30eb\u30c0\u306b\u3001<code>banner_1.html<\/code>\u3001<code>banner_2.html<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-json\"><code>{\n\t\"version\": 2,\n\t\"templateParts\": &#91;\n\t\t{\n\t\t\t\"name\": \"banner_1\",\n\t\t\t\"title\": \"\u30d0\u30ca\u30fc1\",\n\t\t\t\"area\": \"banner\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"banner_2\",\n\t\t\t\"title\": \"\u30d0\u30ca\u30fc2\",\n\t\t\t\"area\": \"banner\"\n\t\t}\n\t]\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u306e\u65b0\u898f\u633f\u5165\u6642\u3001<code>theme.json<\/code> \u3067\u5b9a\u7fa9\u3057\u305f\u4e8c\u3064\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u304c\u3001<code>default_wp_template_part_areas<\/code> \u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u3067\u8ffd\u52a0\u3057\u305f\u300c\u30d0\u30ca\u30fc\u300d\u3068\u3044\u3046\u30a8\u30ea\u30a2\u306b\u30ab\u30c6\u30b4\u30e9\u30a4\u30ba\u3055\u308c\u3066\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u4e8b\u3092\u78ba\u8a8d\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"396\" height=\"437\" src=\"https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_04.png\" alt=\"\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u30d6\u30ed\u30c3\u30af\" class=\"wp-image-919\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/WordPress\/gutenberg\/pull\/30821\" target=\"_blank\" rel=\"noreferrer noopener\">Template part &#8211; register block variations and area selection inputs from original area definitions. #30821 &#8211; GitHub<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">default_template_types<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30bf\u30a4\u30d7\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d6\u30ed\u30c3\u30af\u30c6\u30fc\u30de\u3067\u306f\u3001\u30c6\u30fc\u30de\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e <code>block-templates<\/code> \u307e\u305f\u306f <code>templates<\/code> \u30d5\u30a9\u30eb\u30c0\u306b\u3042\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066\u3001\u62e1\u5f35\u5b50\u3092\u9664\u3044\u305f\u6587\u5b57\u5217\u304c\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u306b\u5408\u81f4\u3057\u305f\u6642\u306b\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>index<\/code> \/ <code>home<\/code> \/ <code>front-page<\/code> \/ <code>singular<\/code> \/ <code>single<\/code> \/ <code>page<\/code> \/ <code>archive<\/code> \/ <code>author<\/code> \/ <code>category<\/code> \/ <code>taxonomy<\/code> \/ <code>date<\/code> \/ <code>tag<\/code> \/ <code>attachment<\/code> \/ <code>search<\/code> \/ <code>privacy-policy<\/code> \/ <code>404<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30bf\u30a4\u30d7\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u305f\u3044\u3068\u3044\u3046\u30b1\u30fc\u30b9\u306f\u8003\u3048\u306b\u304f\u3044\u306e\u3067\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_default_template_types( $default_template_types ) {\n\t\/\/ \u56fa\u5b9a\u30da\u30fc\u30b8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30bf\u30a4\u30d7\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u5909\u66f4\u3059\u308b\n\t$default_template_types&#91;'page']&#91;'title'] = '\u30ab\u30b9\u30bf\u30e0\u30da\u30fc\u30b8\u30bf\u30a4\u30c8\u30eb';\n\t\/\/ 404\u30da\u30fc\u30b8\u306e\u8aac\u660e\u6587\u3092\u5909\u66f4\u3059\u308b\n\t$default_template_types&#91;'404']&#91;'description'] = '404\u30da\u30fc\u30b8\u306e\u65b0\u3057\u3044\u8aac\u660e\u6587\u3067\u3059\u3002';\n\n\treturn $default_template_types;\n}\nadd_filter( 'default_template_types', 'custom_default_template_types' );<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"840\" height=\"712\" src=\"https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_05-840x712.png\" alt=\"\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u4e00\u89a7\" class=\"wp-image-920\" srcset=\"https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_05-840x712.png 840w, https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_05-768x651.png 768w, https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_05.png 1036w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u3082\u3057\u304f\u306f\u6b63\u5f0f\u306a\u65b9\u6cd5\u3067\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u306a\u3044\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30bf\u30a4\u30d7\uff08\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u7b49\uff09\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u3057\u3066\u8ffd\u52a0\u3057\u3066\u3001\u30bf\u30a4\u30c8\u30eb\u30fb\u8aac\u660e\u6587\u3092\u5909\u66f4\u3059\u308b\u4e8b\u3082\u51fa\u6765\u307e\u3059\u3002 \u203b\u30c6\u30fc\u30de\u30d5\u30a9\u30eb\u30c0\u306e <code>templates<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3001\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u7528\u306e <code>single-item.html<\/code> \u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u3068\u3057\u305f\u5834\u5408<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_default_template_types( $default_template_types ) {\n\t$default_template_types&#91;'single-item'] = array(\n\t\t'title'       =&gt; '\u500b\u5225\u5546\u54c1',\n\t\t'description' =&gt; '\u5546\u54c1\u306e\u6295\u7a3f\u3092\u8868\u793a\u3057\u307e\u3059\u3002',\n\t);\n\treturn $default_template_types;\n}\nadd_filter( 'default_template_types', 'custom_default_template_types' );<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"840\" height=\"501\" src=\"https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_06-840x501.png\" alt=\"\u500b\u5225\u5546\u54c1\" class=\"wp-image-921\" srcset=\"https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_06-840x501.png 840w, https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_06-768x458.png 768w, https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_06.png 1012w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/WordPress\/gutenberg\/pull\/27036\" target=\"_blank\" rel=\"noreferrer noopener\">Full Site Editing: Add Support for Templates Default and Custom Titles and Descriptions (PHP Side) #27036 &#8211; GitHub<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">login_display_language_dropdown \u2605<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress\u306b\u8a00\u8a9e\u30d1\u30c3\u30af\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a00\u8a9e\u5207\u308a\u66ff\u3048\u30d7\u30eb\u30c0\u30a6\u30f3\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"476\" height=\"471\" src=\"https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_07.png\" alt=\"\u8a00\u8a9e\u5207\u308a\u66ff\u3048\u30d7\u30eb\u30c0\u30a6\u30f3\" class=\"wp-image-922\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u3092\u4f7f\u3046\u4e8b\u3067\u3001\u30d7\u30eb\u30c0\u30a6\u30f3\u306e\u8868\u793a\u3092\u7121\u52b9\u5316\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>add_filter( 'login_display_language_dropdown', '__return_false' );<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/52404\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 52404 \u2013 WordPress Trac<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/make.wordpress.org\/core\/2021\/12\/20\/introducing-new-language-switcher-on-the-login-screen-in-wp-5-9\/\" target=\"_blank\" rel=\"noreferrer noopener\">Introducing new language switcher on the login screen in WP 5.9 \u2013 Make WordPress Core<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">get_block_file_template \/ pre_get_block_file_template<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c6\u30fc\u30de\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u307e\u305f\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u53d6\u5f97\u3059\u308b <code>get_block_file_template<\/code> \u5185\u306b\u3042\u308b\u4e8c\u3064\u306e\u30d5\u30c3\u30af\u3067\u3001\u53d6\u5f97\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4e8c\u3064\u306e\u30d5\u30c3\u30af\u306f\u3001\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>pre_get_block_file_template<\/code><\/strong>\uff1a \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30af\u30a8\u30ea\u3092\u6295\u3052\u308b\u524d\uff08\u3053\u306e\u30d5\u30a3\u30eb\u30bf\u3067\u4efb\u610f\u306e <code>WP_Block_Template<\/code> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u5374\u3059\u308b\u4e8b\u3067\u3001\u4ee5\u964d\u306e\u51e6\u7406\u304c\u30b9\u30ad\u30c3\u30d7\u3055\u308c\u3001\u305d\u306e\u307e\u307e <code>get_block_file_template<\/code> \u95a2\u6570\u306e\u623b\u308a\u5024\u3068\u306a\u308b\uff09<\/li>\n\n\n\n<li><strong><code>get_block_file_template<\/code><\/strong>\uff1a \u6700\u7d42\u7684\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3082\u3057\u304f\u306f\u30c6\u30fc\u30de\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u53d6\u5f97\u3057\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u8fd4\u5374\u3059\u308b\u6642<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><code>pre_get_block_file_template<\/code> \u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u306f\u3001\u4efb\u610f\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u5f37\u5236\u7684\u306b\u8fd4\u5374\u3057\u305f\u3044\u6642\u306b\u3001<code>get_block_file_template <\/code>\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u306f\u3001\u53d6\u5f97\u3057\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u306e\u4e00\u90e8\u3092\u64cd\u4f5c\u3057\u305f\u3044\u6642\u306b\u4f7f\u3048\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5177\u4f53\u7684\u306b\u3069\u306e\u3088\u3046\u306a\u30b1\u30fc\u30b9\u3067\u4f7f\u7528\u3059\u308b\u306e\u304b\u306f\u5206\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u4f8b\u3048\u3070\u30d7\u30e9\u30b0\u30a4\u30f3\u5074\u304b\u3089\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u306b\u4ecb\u5165\u51fa\u6765\u308b\u4f59\u5730\u3092\u6b8b\u3057\u3066\u3044\u308b\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">get_block_template \/ pre_get_block_template<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u307e\u305f\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u53d6\u5f97\u3059\u308b <code>get_block_template<\/code> \u5185\u306b\u3042\u308b\u4e8c\u3064\u306e\u30d5\u30c3\u30af\u3067\u3001\u53d6\u5f97\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>get_block_templates<\/code> \u95a2\u6570\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u66f4\u65b0\u3057\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u512a\u5148\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u53d6\u5f97\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u66f4\u65b0\u3057\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u7121\u3044\u5834\u5408\u306f\u3001\u30c6\u30fc\u30de\u30d5\u30a9\u30eb\u30c0\u306b\u3042\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092 <code>get_block_file_template<\/code> \u95a2\u6570\u3067\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4e8c\u3064\u306e\u30d5\u30c3\u30af\u306f\u3001\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>pre_get_block_template<\/code><\/strong>\uff1a \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30af\u30a8\u30ea\u3092\u6295\u3052\u308b\u524d\uff08\u3053\u306e\u30d5\u30a3\u30eb\u30bf\u3067\u4efb\u610f\u306e <code>WP_Block_Template<\/code> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u5374\u3059\u308b\u4e8b\u3067\u3001\u4ee5\u964d\u306e\u51e6\u7406\u304c\u30b9\u30ad\u30c3\u30d7\u3055\u308c\u3001\u305d\u306e\u307e\u307e <code>get_block_template<\/code> \u95a2\u6570\u306e\u623b\u308a\u5024\u3068\u306a\u308b\uff09<\/li>\n\n\n\n<li><strong><code>get_block_template<\/code><\/strong>\uff1a \u6700\u7d42\u7684\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3082\u3057\u304f\u306f\u30c6\u30fc\u30de\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u53d6\u5f97\u3057\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u8fd4\u5374\u3059\u308b\u6642<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">get_block_templates \/ pre_get_block_templates<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u307e\u305f\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b <code>get_block_templates<\/code> \u5185\u306b\u3042\u308b\u4e8c\u3064\u306e\u30d5\u30c3\u30af\u3067\u3001\u53d6\u5f97\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u306e\u4e00\u89a7\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>get_block_templates<\/code> \u95a2\u6570\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u66f4\u65b0\u3057\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u307e\u305f\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u512a\u5148\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u53d6\u5f97\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u66f4\u65b0\u3057\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u7121\u3044\u5834\u5408\u306f\u3001\u30c6\u30fc\u30de\u30d5\u30a9\u30eb\u30c0\u306b\u3042\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u53d6\u5f97\u3057\u3001\u305d\u306e\u4e00\u89a7\u3092\u8fd4\u5374\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4e8c\u3064\u306e\u30d5\u30c3\u30af\u306f\u3001\u524d\u8ff0\u306e <code>get_block_template<\/code> \/ <code>pre_get_block_template<\/code> \u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u540c\u69d8\u3001\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>pre_get_block_templates<\/code><\/strong>\uff1a \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30af\u30a8\u30ea\u3092\u6295\u3052\u308b\u524d\uff08\u3053\u306e\u30d5\u30a3\u30eb\u30bf\u3067\u4efb\u610f\u306e <code>WP_Block_Template<\/code> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u914d\u5217\u3092\u8fd4\u5374\u3059\u308b\u4e8b\u3067\u3001\u4ee5\u964d\u306e\u51e6\u7406\u304c\u30b9\u30ad\u30c3\u30d7\u3055\u308c\u3001\u305d\u306e\u307e\u307e <code>get_block_templates<\/code> \u95a2\u6570\u306e\u623b\u308a\u5024\u3068\u306a\u308b\uff09<\/li>\n\n\n\n<li><strong><code>get_block_templates<\/code><\/strong>\uff1a \u6700\u7d42\u7684\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304a\u3088\u3073\u30c6\u30fc\u30de\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u53d6\u5f97\u3057\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u4e00\u89a7\u3092\u8fd4\u5374\u3059\u308b\u6642<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">get_header_image_tag_attributes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d8\u30c3\u30c0\u30fc\u753b\u50cf\u306e\u5c5e\u6027\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d8\u30c3\u30c0\u30fc\u753b\u50cf\u3068\u306f\u3001\u30af\u30e9\u30b7\u30c3\u30af\u30c6\u30fc\u30de\u306b\u304a\u3051\u308b\u300c\u30ab\u30b9\u30bf\u30e0\u30d8\u30c3\u30c0\u30fc\u300d\u306e\u4e8b\u3067\u3001<code>the_custom_header_markup<\/code>\u3001<code>the_header_image_tag<\/code>\u3001<code>get_header_image_tag<\/code> \u306a\u3069\u306e\u95a2\u6570\u3067\u30d8\u30c3\u30c0\u30fc\u753b\u50cf\u3092\u8868\u793a\u3057\u305f\u6642\u306b\u3001\u5185\u90e8\u7684\u306b\u3053\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u304c\u547c\u3070\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_get_header_image_tag_attributes( $attr, $header ) {\n\t\/\/ \u30ab\u30b9\u30bf\u30e0\u30d8\u30c3\u30c0\u30fc\u753b\u50cf\u306ealt\u5c5e\u6027\u3092\u66f8\u304d\u63db\u3048\u308b\n\t$attr&#91;'alt'] = '\u65b0\u3057\u3044\u753b\u50cf\u306e\u8aac\u660e\u6587\u3067\u3059\u3002';\n\treturn $attr;\n}\nadd_filter( 'get_header_image_tag_attributes', 'custom_get_header_image_tag_attributes', 10, 2 );<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/51978\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 51978 \u2013 WordPress Trac<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">http_allowed_safe_ports<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u6642\u306a\u3069\u3067\u3001<code>wp_http_validate_url<\/code> \u95a2\u6570\u3067\u5b89\u5168\u306aURL\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u5185\u90e8\u306b\u3042\u308b\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u3067\u3001\u5b89\u5168\u3068\u898b\u306a\u3059\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30dd\u30fc\u30c8\u756a\u53f7\u306f\u300180 \/ 443 \/ 8080\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_http_allowed_safe_ports( $allowed_ports, $host, $url ) {\n\t\/\/ \u5b89\u5168\u3068\u898b\u306a\u3059\u30dd\u30fc\u30c8\u756a\u53f7\u306b8000\u756a\u3092\u8ffd\u52a0\u3059\u308b\n\t$allowed_ports&#91;] = 8000;\n\treturn $allowed_ports;\n}\nadd_filter( 'http_allowed_safe_ports', 'custom_http_allowed_safe_ports', 10, 3 );<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/52084\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 52084 \u2013 WordPress Trac<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">insert_custom_user_meta<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30e6\u30fc\u30b6\u30fc\u65b0\u898f\u767b\u9332\u30fb\u66f4\u65b0\u6642\u306b\u3001meta\u60c5\u5831\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_insert_custom_user_meta( $custom_meta, $user, $update, $userdata ) \n\n\t\/\/ \u30e6\u30fc\u30b6\u30fc\u66f4\u65b0\u6642\u306e\u307f\u3001\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u60c5\u5831\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u8ffd\u52a0\u3059\u308b\n\tif ( $update ) {\n\t\t$custom_meta = array_merge(\n\t\t\t$custom_meta,\n\t\t\tarray( 'description' =&gt; \"{$user-&gt;last_name}\u3055\u3093\u306e\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u60c5\u5831\u3067\u3059\" ),\n\t\t);\n\t}\n\treturn $custom_meta;\n}\nadd_filter( 'insert_custom_user_meta', 'custom_insert_custom_user_meta', 10, 4 );<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/51738\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 51738 \u2013 WordPress Trac<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">is_post_status_viewable<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6295\u7a3f\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u300c\u95b2\u89a7\u53ef\u80fd\u3068\u307f\u306a\u3059\u304b\u3069\u3046\u304b\u300d\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_is_post_status_viewable( $is_viewable, $post_status ) {\n    \/\/ \u8ffd\u52a0\u3055\u308c\u305f\u300cunread\u300d\u3068\u3044\u3046\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u5834\u5408\u306f\u516c\u958b\u3057\u306a\u3044\n    if ( 'unread' === $post_status-&gt;name ) {\n        return false;\n    }\n    return $is_viewable;\n}\nadd_filter( 'is_post_status_viewable', 'custom_is_post_status_viewable', 10, 2 );<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/52043\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 52043 \u2013 WordPress Trac<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/make.wordpress.org\/core\/2021\/12\/13\/posts-post-types-and-taxonomy-changes-in-wordpress-5-9\/#is-post-status-viewable-filter\" target=\"_blank\" rel=\"noreferrer noopener\">Title: Posts, Post types and Taxonomy changes in WordPress 5.9 \u2013 Make WordPress Core<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">is_post_type_viewable \u2605<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6295\u7a3f\u30bf\u30a4\u30d7\u304c\u300c\u95b2\u89a7\u53ef\u80fd\u300d\u304b\u3069\u3046\u304b\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u3067\u3042\u308c\u3070\u3001<code>register_post_type<\/code> \u306e\u30d1\u30e9\u30e1\u30fc\u30bf\uff08<code>publicly_queryable<\/code>\uff09\u306b\u3042\u305f\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u3092\u4e0a\u66f8\u304d\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002 \u307e\u305f\u3001\u30d3\u30eb\u30c8\u30a4\u30f3\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u30fb\u8868\u793a\u3092\u7121\u52b9\u306b\u3059\u308b\u4e8b\u3082\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_is_post_type_viewable( $is_viewable, $post_type ) {\n    \/\/ \u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u8ffd\u52a0\u3055\u308c\u305f\u300cBooks\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u6295\u7a3f\u30bf\u30a4\u30d7\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u30fb\u8868\u793a\u3092\u7121\u52b9\u5316\u3059\u308b\n    if ( __( 'Books', 'my-plugin' ) === $post_type-&gt;label ) {\n        return false;\n    }\n    \/\/ \u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u30fb\u8868\u793a\u3092\u7121\u52b9\u5316\u3059\u308b\n\tif ( 'page' === $post_type-&gt;name ) {\n\t\treturn false;\n\t}\n\treturn $is_viewable;\n}\nadd_filter( 'is_post_type_viewable', 'custom_is_post_type_viewable', 10, 2 );<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/52024\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 52024 \u2013 WordPress Trac<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/make.wordpress.org\/core\/2021\/12\/13\/posts-post-types-and-taxonomy-changes-in-wordpress-5-9\/#is-post-type-viewable-filter\" target=\"_blank\" rel=\"noreferrer noopener\">Title: Posts, Post types and Taxonomy changes in WordPress 5.9 \u2013 Make WordPress Core<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">post_thumbnail_id<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>get_post_thumbnail_id<\/code> \u95a2\u6570\u5185\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u3067\u3001\u6295\u7a3f\u306e\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u306eID\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002 \u7279\u5b9a\u306e\u6761\u4ef6\u3067\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u3092\u5dee\u3057\u66ff\u3048\u305f\u3044\u3001\u3082\u3057\u304f\u306f\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u304c\u7121\u304b\u3063\u305f\u5834\u5408\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u753b\u50cf\u3092\u8868\u793a\u3055\u305b\u305f\u3044\u3001\u3068\u3044\u3046\u30b1\u30fc\u30b9\u3067\u4f7f\u7528\u51fa\u6765\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/52028\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 52028 \u2013 WordPress Trac<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/make.wordpress.org\/core\/2021\/12\/13\/posts-post-types-and-taxonomy-changes-in-wordpress-5-9\/#post-thumbnail-id-filter\" target=\"_blank\" rel=\"noreferrer noopener\">Title: Posts, Post types and Taxonomy changes in WordPress 5.9 \u2013 Make WordPress Core<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">post_thumbnail_url<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>get_the_post_thumbnail_url<\/code> \u95a2\u6570\u5185\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u3067\u3001\u6295\u7a3f\u306e\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u306eURL\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002 \u7279\u5b9a\u306e\u6761\u4ef6\u3067\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u3092\u5dee\u3057\u66ff\u3048\u305f\u3044\u3001\u3082\u3057\u304f\u306f\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u304c\u7121\u304b\u3063\u305f\u5834\u5408\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u753b\u50cf\u3092\u8868\u793a\u3055\u305b\u305f\u3044\u3001\u3068\u3044\u3046\u30b1\u30fc\u30b9\u3067\u4f7f\u7528\u51fa\u6765\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/52027\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 52027 \u2013 WordPress Trac<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/make.wordpress.org\/core\/2021\/12\/13\/posts-post-types-and-taxonomy-changes-in-wordpress-5-9\/#post-thumbnail-url-filter\" target=\"_blank\" rel=\"noreferrer noopener\">Title: Posts, Post types and Taxonomy changes in WordPress 5.9 \u2013 Make WordPress Core<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">rest_prepare_url_details<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">URL\u304b\u3089\u53d6\u5f97\u3057\u305f\u30ec\u30b9\u30dd\u30f3\u30b9\u30c7\u30fc\u30bf\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070\u3001\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u30fc\u4e0a\u3067\u30c6\u30ad\u30b9\u30c8\u306bURL\u30ea\u30f3\u30af\u3092\u8cbc\u3063\u305f\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30ea\u30f3\u30af\u5148\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"568\" height=\"472\" src=\"https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_08.png\" alt=\"\u30ea\u30f3\u30af\u5148\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u60c5\u5831\" class=\"wp-image-923\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u3088\u3046\u306a\u30d7\u30ec\u30d3\u30e5\u30fc\u30c7\u30fc\u30bf\u3092\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>\/\/ \u7279\u5b9a\u306e\u30ea\u30af\u30a8\u30b9\u30c8URL\u306e\u307f\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u30c7\u30fc\u30bf\u3092\u5909\u66f4\u3059\u308b\nfunction custom_rest_prepare_url_details( $response, $url, $request, $remote_url_response ) {\n\tif ( 'https:\/\/wordpress.org' === $url ) {\n\t\t$response-&gt;data = array(\n\t\t\t'title'       =&gt; '\u65b0\u3057\u3044\u30bf\u30a4\u30c8\u30eb',                  \/\/ \u30bf\u30a4\u30c8\u30eb\n\t\t\t'icon'        =&gt; get_theme_file_uri( 'icon.jpg' ),  \/\/ favicon\n\t\t\t'description' =&gt; '\u65b0\u3057\u3044\u8aac\u660e\u6587',                    \/\/ \u8aac\u660e\u6587\n\t\t\t'image'       =&gt; get_theme_file_uri( 'image.jpg' ), \/\/ \u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\n\t\t);\n\t}\n\treturn $response;\n}\nadd_filter( 'rest_prepare_url_details', 'custom_rest_prepare_url_details', 10, 5 );<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"554\" height=\"424\" src=\"https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_09.png\" alt=\"\u30d7\u30ec\u30d3\u30e5\u30fc\u30c7\u30fc\u30bf\u306e\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\" class=\"wp-image-924\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">rest_route_for_post_type_items \/ rest_route_for_taxonomy_items<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>rest_route_for_post_type_items<\/code> \u306f\u6295\u7a3f\u30bf\u30a4\u30d7\u306eREST API\u30eb\u30fc\u30c8\u3092\u3001<code>rest_route_for_taxonomy_items<\/code> \u306f\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306eREST API\u30eb\u30fc\u30c8\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">REST API\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u30d0\u30c3\u30c6\u30a3\u30f3\u30b0\u3057\u3066\u3057\u307e\u3063\u305f\u6642\u306b\u3001\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u4f7f\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_rest_route_for_post_type_items( $route, $post_type ) {\n\t\/\/ \u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\uff08item\uff09\u306eREST API\u30eb\u30fc\u30c8\u3092\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\"\/wp\/v2\/item\"\u304b\u3089\u5909\u66f4\u3059\u308b\n\tif ( 'item' === $post_type-&gt;name ) {\n\t\t$route = '\/my-item';\n\t}\n\treturn $route;\n}\nadd_filter( 'rest_route_for_post_type_items', 'custom_rest_route_for_post_type_items', 10, 2 );<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_rest_route_for_taxonomy_items( $route, $taxonomy ) {\n\t\/\/ \u6295\u7a3f\u30ab\u30c6\u30b4\u30ea\u30fc\u306eREST API\u30eb\u30fc\u30c8\u3092\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\"\/wp\/v2\/categories\"\u304b\u3089\u5909\u66f4\u3059\u308b\n\tif ( 'category' === $taxonomy-&gt;name ) {\n\t\t$route = '\/my-categories';\n\t}\n\treturn $route;\n}\nadd_filter( 'rest_route_for_taxonomy_items', 'custom_rest_route_for_taxonomy_items', 10, 2 );<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">rest_url_details_cache_expiration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">URL\u304b\u3089\u53d6\u5f97\u3057\u305f\u30ec\u30b9\u30dd\u30f3\u30b9\u30c7\u30fc\u30bf\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6709\u52b9\u671f\u9650\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u6709\u52b9\u671f\u9650\u306f3600\u79d2\uff08 <code>HOUR_IN_SECONDS<\/code>\uff09\u3067\u3001<a href=\"https:\/\/developer.wordpress.org\/apis\/handbook\/transients\/\" target=\"_blank\" rel=\"noreferrer noopener\">Transients API<\/a>\u306b\u3088\u3063\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>\/\/ URL\u304b\u3089\u53d6\u5f97\u3057\u305f\u30ec\u30b9\u30dd\u30f3\u30b9\u30c7\u30fc\u30bf\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6709\u52b9\u671f\u9650\u30921\u9031\u9593\u306b\u5909\u66f4\u3059\u308b\nfunction custom_rest_url_details_cache_expiration( $ttl ) {\n\treturn WEEK_IN_SECONDS;\n}\nadd_filter( 'rest_url_details_cache_expiration', 'custom_rest_url_details_cache_expiration' );<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">rest_url_details_http_request_args<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">URL\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u6642\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"#rest_prepare_url_details\">rest_prepare_url_details<\/a> \u3067\u8a18\u8f09\u3057\u305f\u901a\u308a\u3001\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u30fc\u4e0a\u3067\u30c6\u30ad\u30b9\u30c8\u306b\u30ea\u30f3\u30af\u3092\u8cbc\u3063\u305f\u5834\u5408\u306b\u30ea\u30f3\u30af\u5148\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001\u3053\u306e\u3088\u3046\u306a\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u6642\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>\/\/ \u7279\u5b9a\u306e\u30ea\u30af\u30a8\u30b9\u30c8URL\u306e\u307f\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u6642\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5909\u66f4\u3059\u308b\nfunction custom_rest_url_details_http_request_args( $args, $url ) {\n\tif ( 'https:\/\/wordpress.org' === $url ) {\n\t\t$args = array(\n\t\t\t\/\/ \u30ec\u30b9\u30dd\u30f3\u30b9\u30c7\u30fc\u30bf\u306e\u6700\u5927\u30d0\u30a4\u30c8\u6570\u3092300KB\u306b\u5909\u66f4\n\t\t\t\/\/ \u30c7\u30d5\u30a9\u30eb\u30c8\u306f150KB\n\t\t\t'limit_response_size' =&gt; 300 * KB_IN_BYTES,\n\t\t\t\/\/ \u30e6\u30fc\u30b6\u30fc\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u5909\u66f4\n\t\t\t\/\/ \u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u3001'WP-URLDetails\/{WordPress\u306e\u30d0\u30fc\u30b8\u30e7\u30f3}(+{\u30b5\u30a4\u30c8\u306eURL})'\n\t\t\t'user-agent'          =&gt; 'Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/42.0.2311.135 Safari\/537.36 Edge\/12.246',\n\t\t);\n\t}\n\n\terror_log( print_r( $args, true) );\n\treturn $args;\n}\nadd_filter( 'rest_url_details_http_request_args', 'custom_rest_url_details_http_request_args', 10, 2 );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070\u3001\u7279\u5b9a\u306eURL\u304b\u3089\u30ec\u30b9\u30dd\u30f3\u30b9\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306e\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u3088\u3063\u3066\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u304c\u5f3e\u304b\u308c\u305f\u308a\u3059\u308b\u5834\u5408\u306b\u4f7f\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305f\u3060\u3057\u3001<a href=\"#rest_url_details_cache_expiration\">rest_url_details_cache_expiration<\/a> \u3067\u8a18\u8f09\u3057\u305f\u901a\u308a\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u30c7\u30fc\u30bf\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u308b\u305f\u3081\u3001\u305d\u306e\u6709\u52b9\u671f\u9650\u5185\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u81ea\u4f53\u304c\u9001\u3089\u308c\u305a\u3001\u3053\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u3082\u901a\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">rss_widget_feed_link<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30af\u30e9\u30b7\u30c3\u30af\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306b\u304a\u3044\u3066\u3001RSS\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3092\u8ffd\u52a0\u3057\u305f\u6642\u306b\u3001\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u30bf\u30a4\u30c8\u30eb\u306b\u4ed8\u4e0e\u3055\u308c\u308bRSS\u30a2\u30a4\u30b3\u30f3\u3092\u975e\u8868\u793a\u306b\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>add_filter( 'rss_widget_feed_link', '__return_false' );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3068\u3001RSS\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u30bf\u30a4\u30c8\u30eb\u90e8\u5206\u306eHTML\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-html\"><code>&lt;h2 class=\"widget-title\"&gt;\n\t&lt;a class=\"rsswidget rss-widget-feed\" href=\"{RSS\u30d5\u30a3\u30fc\u30c9URL}\"&gt;\n\t\t&lt;img class=\"rss-widget-icon\" style=\"border:0\" width=\"14\" height=\"14\" src=\"http:\/\/example.com\/wp-includes\/images\/rss.png\" alt=\"RSS\" loading=\"lazy\"&gt;\n\t&lt;\/a&gt;\n\t&lt;a class=\"rsswidget rss-widget-title\" href=\"{RSS\u30d5\u30a3\u30fc\u30c9URL}\"&gt;{RSS\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u30bf\u30a4\u30c8\u30eb}&lt;\/a&gt;\n&lt;\/h2&gt;\n\n\/\/ \u2193\u2193\u2193\n\n&lt;h2 class=\"widget-title\"&gt;\n\t&lt;a class=\"rsswidget rss-widget-title\" href=\"{RSS\u30d5\u30a3\u30fc\u30c9URL}\"&gt;{RSS\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u30bf\u30a4\u30c8\u30eb}&lt;\/a&gt;\n&lt;\/h2&gt;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/ticket\/52224\" target=\"_blank\" rel=\"noreferrer noopener\">#52224 (RSS Widget: allow removing the feed icon link) \u2013 WordPress Trac<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">login_language_dropdown_args<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u308b\u8a00\u8a9e\u5207\u308a\u66ff\u3048\u30d7\u30eb\u30c0\u30a6\u30f3\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"#login_display_language_dropdown\">login_display_language_dropdown<\/a> \u306e\u9805\u3067\u8aac\u660e\u3057\u305f\u901a\u308a\u3001WordPress\u306b\u8a00\u8a9e\u30d1\u30c3\u30af\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306b\u8a00\u8a9e\u5207\u308a\u66ff\u3048\u30d7\u30eb\u30c0\u30a6\u30f3\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u306f\u3001\u5185\u90e8\u7684\u306b <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_dropdown_languages\/\" target=\"_blank\" rel=\"noreferrer noopener\">wp_dropdown_languages<\/a> \u95a2\u6570\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u66f8\u304d\u63db\u3048\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3001WordPress\u30b3\u30a2\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d5\u30c3\u30af\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>wp_dropdown_languages( apply_filters( 'login_language_dropdown_args', $args ) );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u90e8\u5206\u306e <code>wp_dropdown_languages<\/code> \u95a2\u6570\u306b\u6e21\u3055\u308c\u3066\u3044\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>$args = array(\n\t\/\/ \u30bb\u30ec\u30af\u30c8\u30dc\u30c3\u30af\u30b9\u306eID\u5c5e\u6027\u540d\n\t'id'                          =&gt; 'language-switcher-locales',\n\t\/\/ \u30bb\u30ec\u30af\u30c8\u30dc\u30c3\u30af\u30b9\u306ename\u5c5e\u6027\u540d\n\t'name'                        =&gt; 'wp_lang',\n\t\/\/ \u521d\u671f\u5024\u3067\u9078\u629e\u3055\u308c\u308b\u8a00\u8a9e\n\t'selected'                    =&gt; determine_locale(),\n\t\/\/ \uff08\u8a00\u8a9e\u30d1\u30c3\u30af\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\uff09\u8a00\u8a9e\u4e00\u89a7\u3082\u8868\u793a\u3059\u308b\u304b\u3069\u3046\u304b\n\t'show_available_translations' =&gt; false,\n\t\/\/ \u30c7\u30d5\u30a9\u30eb\u30c8\u8a00\u8a9e\u306e\u300cEnglish (United States)\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u306evalue\u5024\u306b\u3001\u660e\u793a\u7684\u306ben_US\u3068\u3044\u3046\u5024\u3092\u4f7f\u7528\u3059\u308b\u304b\u3069\u3046\u304b\n\t'explicit_option_en_us'        =&gt; true, \n\t\/\/ \u30d7\u30eb\u30c0\u30a6\u30f3\u306b\u8868\u793a\u3059\u308b\u8a00\u8a9e\n\t'languages'                   =&gt; $languages,\n);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u30d7\u30eb\u30c0\u30a6\u30f3\u3092\u5909\u66f4\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_login_language_dropdown_args( $args ) {\n    \/\/ WordPress\u306e\u8a00\u8a9e\u8a2d\u5b9a\u306b\u95a2\u308f\u3089\u305a\u3001\u8a00\u8a9e\u9078\u629e\u30d7\u30eb\u30c0\u30a6\u30f3\u306e\u521d\u671f\u9078\u629e\u5024\u3092\u82f1\u8a9e\u306b\u3059\u308b\n    $args&#91;'selected'] = 'en_US';\n\n    \/\/ \u8907\u6570\u306e\u8a00\u8a9e\u30d1\u30c3\u30af\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30b5\u30a4\u30c8\u3067\u3001\u9078\u629e\u80a2\u3092\u65e5\u672c\u8a9e\u306e\u307f\uff08\uff0b\u30c7\u30d5\u30a9\u30eb\u30c8\u8a00\u8a9e\u306e\u82f1\u8a9e\uff09\u306b\u9650\u5b9a\u3059\u308b\n    $args&#91;'languages'] = array( 'ja' );\n\n    return $args;\n}\nadd_filter( 'login_language_dropdown_args', 'custom_login_language_dropdown_args' );<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">wp_omit_loading_attr_threshold \u2605<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u3057\u306a\u3044\u30b3\u30f3\u30c6\u30f3\u30c4\u30e1\u30c7\u30a3\u30a2\u8981\u7d20\u306e\u6570\u306e\u95be\u5024\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress5.5\u3067\u30cd\u30a4\u30c6\u30a3\u30d6Lazy-load\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u6295\u7a3f\u30b3\u30f3\u30c6\u30f3\u30c4\u5185\u306e\u753b\u50cf\u306b <code>loading=\"lazy\"<\/code> \u5c5e\u6027\u304c\u4ed8\u4e0e\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress5.9\u3067\u306f\u3001 Largest Contentful Paint metric (LCP) \u6539\u5584\u306e\u305f\u3081\u306b\u3001<strong>\u30da\u30fc\u30b8\u306e\u6700\u521d\u306e\u300c\u30b3\u30f3\u30c6\u30f3\u30c4\u753b\u50cf\u307e\u305f\u306fiframe\u300d\u306f\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u304b\u3089\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u3088\u3046\u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f<\/strong>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u4f7f\u3046\u3068\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u5185\u306e\u6700\u521d\u306e\u753b\u50cf\u3092\u3044\u304f\u3064\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u304b\u3089\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u304b\u3092\u5909\u66f4\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>\/\/ \u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u304b\u3089\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u30e1\u30c7\u30a3\u30a2\u306e\u6570\u30921\u304b\u30893\u306b\u5909\u66f4\u3059\u308b\nfunction custom_wp_omit_loading_attr_threshold( $omit_threshold ) {\n\treturn 3;\n}\nadd_filter( 'wp_omit_loading_attr_threshold', 'custom_wp_omit_loading_attr_threshold' );<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/52065\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 52065 \u2013 WordPress Trac<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u30a2\u30af\u30b7\u30e7\u30f3\u30d5\u30c3\u30af<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">render_block_core_template_part_post \/ render_block_core_template_part_file \/ render_block_core_template_part_none<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u304c\u8aad\u307f\u8fbc\u307e\u308c\u305f\u5f8c\u3084\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u304c\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u6642\u306b\u305d\u308c\u305e\u308c\u767a\u706b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3068\u306f\u3001\u30da\u30fc\u30b8\u30fb\u6295\u7a3f\u306a\u3069\u3067\u6c4e\u7528\u7684\u306b\u5229\u7528\u3067\u304d\u308b\u5171\u901a\u30d1\u30fc\u30c4\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Header\/ Footer \/ General \u306e\u4e09\u3064\u306e\u30a8\u30ea\u30a2\u3044\u305a\u308c\u304b\u306b\u5c5e\u3057\u3001\u7279\u306b<a href=\"https:\/\/ja.wordpress.org\/team\/handbook\/block-editor\/how-to-guides\/themes\/block-theme-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u30d6\u30ed\u30c3\u30af\u30c6\u30fc\u30de<\/a>\u306b\u304a\u3044\u3066\u306f\u3001\u30d8\u30c3\u30c0\u30fc\u30fb\u30d5\u30c3\u30bf\u30fc\u306a\u3069\u304c\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3068\u3057\u3066\u7ba1\u7406\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u5185\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306f\u30c6\u30fc\u30de\u5074\u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u3068\u3057\u3066\u6307\u5b9a\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u304c\u3001\u30b5\u30a4\u30c8\u30a8\u30c7\u30a3\u30bf\u30fc\u4e0a\u3067\u7de8\u96c6\u3092\u884c\u3046\u3068\u3001\u30c6\u30fc\u30de\u5185\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u30d5\u30a1\u30a4\u30eb\u3092\u4e0a\u66f8\u304d\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001 <code>wp_template_part<\/code> \u3068\u3044\u3046\u6295\u7a3f\u30bf\u30a4\u30d7\u3068\u3057\u3066\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4e09\u3064\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u30d5\u30c3\u30af\u306f\u3001\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u767a\u706b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>render_block_core_template_part_post<\/code> \u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3055\u308c\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\uff08\u30b9\u30bf\u30e0\u6295\u7a3f\u3068\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\uff09\u304c\u8aad\u307f\u8fbc\u307e\u308c\u308b\u6642<\/li>\n\n\n\n<li><code>render_block_core_template_part_file<\/code> \u30c6\u30fc\u30de\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u304c\u8aad\u307f\u8fbc\u307e\u308c\u308b\u6642<\/li>\n\n\n\n<li><code>render_block_core_template_part_none<\/code> \u30c6\u30fc\u30de\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u8aad\u307f\u8fbc\u3082\u3046\u3068\u3057\u305f\u304c\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u7a7a\u306e\u5834\u5408\u307e\u305f\u306f\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u203b\u5177\u4f53\u7684\u306b\u3069\u306e\u3088\u3046\u306a\u30b1\u30fc\u30b9\u3067\u4f7f\u3046\u304b\u306f\u5206\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">wp_mail_succeeded<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>wp_mail<\/code> \u95a2\u6570\uff08PHPMailer\uff09\u306b\u3088\u3063\u3066\u3001\u30e1\u30fc\u30eb\u304c\u30a8\u30e9\u30fc\u7121\u304f\u9001\u4fe1\u3055\u308c\u305f\u5f8c\u306b\u767a\u706b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30e1\u30fc\u30eb\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u9001\u4fe1\u30ed\u30b0\u3092\u53d6\u3063\u305f\u308a\u3059\u308b\u4e8b\u306b\u4f7f\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_wp_mail_succeeded( $mail_data )  {\n\t$to = $mail_data&#91;'to'];                   \/\/ \u9001\u4fe1\u5148\n\t$subject = $mail_data&#91;'subject'];         \/\/ \u4ef6\u540d\n\t$headers = $mail_data&#91;'headers'];         \/\/ \u30e1\u30fc\u30eb\u30d8\u30c3\u30c0\u30fc\n\t$attachments = $mail_data&#91;'attachments']; \/\/ \u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\n\t\/\/ \uff5e\uff5e\uff5e\u9001\u4fe1\u3055\u308c\u305f\u30e1\u30fc\u30eb\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u4f55\u304b\u3059\u308b\uff5e\uff5e\uff5e\n}\nadd_action( 'wp_mail_succeeded', 'custom_wp_mail_succeeded' );<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/52083\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 52083 \u2013 WordPress Trac<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u30af\u30e9\u30b9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30af\u30e9\u30b9\u306b\u95a2\u3057\u3066\u306f\u3001\u4e00\u822c\u7684\u306a\u958b\u767a\u3067\u306f\u307b\u307c\u4f7f\u308f\u306a\u3044\u3067\u3042\u308d\u3046\u4e8b\u3001\u307e\u305f\u81ea\u5206\u304c\u8a73\u3057\u304f\u89e3\u8aac\u51fa\u6765\u308b\u81ea\u4fe1\u304c\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u5404\u30af\u30e9\u30b9\u306e\u5192\u982d\u306e\u30b3\u30e1\u30f3\u30c8\u6b04\u3092\u7ffb\u8a33\u3057\u305f\u6587\u7ae0\u306e\u307f\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">WP_REST_Edit_Site_Export_Controller<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u73fe\u5728\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30fc\u30c4\u3092\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3059\u308b\u305f\u3081\u306eREST\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u63d0\u4f9b\u3059\u308b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">WP_REST_Global_Styles_Controller<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d9\u30fc\u30b9\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30bf\u30a4\u30eb\u306eREST API\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">WP_REST_Menu_Items_Controller<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">REST API\u3067\u30ca\u30d3\u9805\u76ee\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u30b3\u30a2\u30af\u30e9\u30b9<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">WP_REST_Menu_Locations_Controller<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">REST API\u7d4c\u7531\u3067\u30e1\u30cb\u30e5\u30fc\u306e\u4f4d\u7f6e\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u30b3\u30a2\u30af\u30e9\u30b9<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">WP_REST_Menus_Controller<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">REST API \u7d4c\u7531\u3067\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u30e1\u30cb\u30e5\u30fc\u306e\u30bf\u30fc\u30e0\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u30b3\u30a2\u30af\u30e9\u30b9<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">WP_REST_URL_Details_Controller<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ea\u30e2\u30fc\u30c8\u30b5\u30a4\u30c8\u306eHTML\u30ec\u30b9\u30dd\u30f3\u30b9\u304b\u3089\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306eREST\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u63d0\u4f9b\u3059\u308b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">WP_Theme_JSON_Schema<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>theme.json<\/code> \u3092\u6700\u65b0\u306e\u30b9\u30ad\u30fc\u30de\u306b\u79fb\u884c\u3059\u308b\u305f\u3081\u306e\u30af\u30e9\u30b9<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u305f\u95a2\u6570<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f71\u97ff\u304c\u5927\u304d\u305d\u3046\u306a\u95a2\u6570\u306e\u307f\u3092\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001<a href=\"https:\/\/www.php.net\/manual\/ja\/functions.arguments.php#functions.named-arguments\" target=\"_blank\" rel=\"noreferrer noopener\">PHP8\u306e\u540d\u524d\u4ed8\u304d\u30d1\u30e9\u30e1\u30fc\u30bf<\/a>\u306e\u30b5\u30dd\u30fc\u30c8\u306e\u305f\u3081\u306b\u3001\u5f15\u6570\u306e\u5909\u6570\u540d\u3060\u3051\u304c\u5909\u308f\u3063\u3066\u3044\u308b\u3082\u306e\u304c\u5927\u91cf\u306b\u3042\u308a\u307e\u3059\u3002 PHP8\u74b0\u5883\u3067\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u540d\u304c\u5909\u308f\u3063\u305fWordPress\u30b3\u30a2\u306e\u30d1\u30d6\u30ea\u30c3\u30af\u95a2\u6570\u3092\u540d\u524d\u4ed8\u304d\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u547c\u3093\u3067\u3044\u306a\u3044\u9650\u308a\u306f\u5f71\u97ff\u306f\u7121\u3044\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u3053\u3053\u3067\u306f\u9664\u5916\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">get_taxonomy_labels<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5168\u3066\u306e\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u30e9\u30d9\u30eb\u3092\u6301\u3064\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u5374\u3057\u307e\u3059\u3002 <a href=\"#register_taxonomy\">register_taxonomy<\/a> \u306e\u9805\u3067\u8aac\u660e\u3059\u308b\u901a\u308a\u3001\u65b0\u305f\u306b\u8ffd\u52a0\u3055\u308c\u305f\u4ee5\u4e0b\u9805\u76ee\u304c\u542b\u307e\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>name_field_description<\/code> \uff08\u300c\u540d\u524d\u300d\u306e\u8aac\u660e\u6587\uff09<\/li>\n\n\n\n<li><code>slug_field_description<\/code>\uff08\u300c\u30b9\u30e9\u30c3\u30b0\u300d\u306e\u8aac\u660e\u6587\uff09<\/li>\n\n\n\n<li><code>parent_field_description<\/code>\uff08\u300c\u89aa\u30ab\u30c6\u30b4\u30ea\u30fc\u300d\u306e\u8aac\u660e\u6587\uff09<\/li>\n\n\n\n<li><code>desc_field_description<\/code>\uff08 \u300c\u8aac\u660e\u300d\u306e\u4e0b\u306b\u8868\u793a\u3055\u308c\u308b\u8aac\u660e\u6587\uff09<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>\/\/ \u6295\u7a3f\u30ab\u30c6\u30b4\u30ea\u30fc\u306e\u30e9\u30d9\u30eb\u3092\u5168\u3066\u53d6\u5f97\nvar_dump( get_taxonomy_labels( get_taxonomy( 'category' ) ) );\n\n\/\/ \u2193\u2193\u2193\uff08\u51fa\u529b\u4f8b\uff09\nobject(stdClass)#7400 (31) {\n  &#91;\"name\"]=&gt;\n  string(10) \"Categories\"\n  &#91;\"singular_name\"]=&gt;\n  string(8) \"Category\"\n  &#91;\"search_items\"]=&gt;\n  string(17) \"Search Categories\"\n  &#91;\"popular_items\"]=&gt;\n  NULL\n  &#91;\"all_items\"]=&gt;\n  string(14) \"All Categories\"\n  &#91;\"parent_item\"]=&gt;\n  string(15) \"Parent Category\"\n  &#91;\"parent_item_colon\"]=&gt;\n  string(16) \"Parent Category:\"\n  \/\/ \u26055.9\u3067\u65b0\u898f\u8ffd\u52a0\u3055\u308c\u305f\u9805\u76ee\uff08\u300c\u540d\u524d\u300d\u306e\u8aac\u660e\u6587\uff09\n  &#91;\"name_field_description\"]=&gt;\n  string(40) \"The name is how it appears on your site.\"\n  \/\/ \u26055.9\u3067\u65b0\u898f\u8ffd\u52a0\u3055\u308c\u305f\u9805\u76ee\uff08\u300c\u30b9\u30e9\u30c3\u30b0\u300d\u306e\u8aac\u660e\u6587\uff09\n  &#91;\"slug_field_description\"]=&gt;\n  string(140) \"The \u201cslug\u201d is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.\"\n  \/\/ \u26055.9\u3067\u65b0\u898f\u8ffd\u52a0\u3055\u308c\u305f\u9805\u76ee\uff08\u300c\u89aa\u30ab\u30c6\u30b4\u30ea\u30fc\u300d\u306e\u8aac\u660e\u6587\uff09\n  &#91;\"parent_field_description\"]=&gt;\n  string(114) \"Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.\"\n  \/\/ \u26055.9\u3067\u65b0\u898f\u8ffd\u52a0\u3055\u308c\u305f\u9805\u76ee\uff08 \u300c\u8aac\u660e\u300d\u306e\u4e0b\u306b\u8868\u793a\u3055\u308c\u308b\u8aac\u660e\u6587\uff09\n  &#91;\"desc_field_description\"]=&gt;\n  string(78) \"The description is not prominent by default; however, some themes may show it.\"\n  &#91;\"edit_item\"]=&gt;\n  string(13) \"Edit Category\"\n  &#91;\"view_item\"]=&gt;\n  string(13) \"View Category\"\n  &#91;\"update_item\"]=&gt;\n  string(15) \"Update Category\"\n  &#91;\"add_new_item\"]=&gt;\n  string(16) \"Add New Category\"\n  &#91;\"new_item_name\"]=&gt;\n  string(17) \"New Category Name\"\n  &#91;\"separate_items_with_commas\"]=&gt;\n  NULL\n  &#91;\"add_or_remove_items\"]=&gt;\n  NULL\n  &#91;\"choose_from_most_used\"]=&gt;\n  NULL\n  &#91;\"not_found\"]=&gt;\n  string(20) \"No categories found.\"\n  &#91;\"no_terms\"]=&gt;\n  string(13) \"No categories\"\n  &#91;\"filter_by_item\"]=&gt;\n  string(18) \"Filter by category\"\n  &#91;\"items_list_navigation\"]=&gt;\n  string(26) \"Categories list navigation\"\n  &#91;\"items_list\"]=&gt;\n  string(15) \"Categories list\"\n  &#91;\"most_used\"]=&gt;\n  string(9) \"Most Used\"\n  &#91;\"back_to_items\"]=&gt;\n  string(23) \"\u2190 Go to Categories\"\n  &#91;\"item_link\"]=&gt;\n  string(13) \"Category Link\"\n  &#91;\"item_link_description\"]=&gt;\n  string(21) \"A link to a category.\"\n  &#91;\"menu_name\"]=&gt;\n  string(10) \"Categories\"\n  &#91;\"name_admin_bar\"]=&gt;\n  string(8) \"category\"\n  &#91;\"archives\"]=&gt;\n  string(14) \"All Categories\"\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">get_theme_mods<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u73fe\u5728\u306e\u30c6\u30fc\u30de\u306e\u30c6\u30fc\u30de\u8a2d\u5b9a\u5024\u3092\u3059\u3079\u3066\u53d6\u5f97\u3059\u308b\u95a2\u6570\u3067\u3001\u5e38\u306b\u914d\u5217\u3092\u8fd4\u5374\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u307e\u3067\u306f\u3001\u30c6\u30fc\u30de\u8a2d\u5b9a\u5024\u304c\u3072\u3068\u3064\u3082\u7121\u3044\u5834\u5408\u306f <code>false<\/code> \u3092\u8fd4\u3057\u3066\u3044\u305f\u305f\u3081\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>if ( false === get_theme_mods() ) {\n  \/\/ .....\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u306a\u3069\u3001\u30c6\u30fc\u30de\u306e\u8a2d\u5b9a\u5024\u306e\u6709\u7121\u3092 <code>boolean<\/code> \u3067\u5224\u65ad\u3057\u3066\u3044\u308b\u30b3\u30fc\u30c9\u304c\u3042\u308c\u3070\u3001\u6539\u4fee\u304c\u5fc5\u8981\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">register_block_type \/ register_block_type_from_metadata \u2605<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d6\u30ed\u30c3\u30af\u3092\u767b\u9332\u3059\u308b\u6642\u306b\u4f7f\u7528\u3055\u308c\u308b<code>register_block_type<\/code> (<code>register_block_type_from_metadata<\/code>) \u95a2\u6570\u3067\u53c2\u7167\u3055\u308c\u308b <code>block.json<\/code> \u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066\u3001<strong>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u307f\u3067\u8aad\u307f\u8fbc\u3080JavaScript\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306e <code>viewScript<\/code><\/strong> \u3001\u304a\u3088\u3073\u30d6\u30ed\u30c3\u30af\u306e\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u3092\u767b\u9332\u3059\u308b <code>variations<\/code> \u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>viewScript<\/code> \u306b\u95a2\u3057\u3066\u306f\u3001JavaScript \/ CSS\u305d\u308c\u305e\u308c\u3067\u306e\u8aad\u307f\u8fbc\u307e\u308c\u65b9\u3092\u307e\u3068\u3081\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>JavaScript<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u30d7\u30ed\u30d1\u30c6\u30a3\u540d<\/th><th>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u5074\u3067\u306e\u8aad\u307f\u8fbc\u307f<\/th><th>\u30a8\u30c7\u30a3\u30bf\u30fc\u5074\u3067\u306e\u8aad\u307f\u8fbc\u307f<\/th><\/tr><\/thead><tbody><tr><td>editorScript<\/td><td><\/td><td>\u3007<\/td><\/tr><tr><td>viewScript<\/td><td>\u3007<\/td><td><\/td><\/tr><tr><td>script<\/td><td>\u3007<\/td><td>\u3007<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>CSS<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u30d7\u30ed\u30d1\u30c6\u30a3\u540d<\/th><th>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u5074\u3067\u306e\u8aad\u307f\u8fbc\u307f<\/th><th>\u30a8\u30c7\u30a3\u30bf\u30fc\u5074\u3067\u306e\u8aad\u307f\u8fbc\u307f<\/th><\/tr><\/thead><tbody><tr><td>editorStyle<\/td><td><\/td><td>\u3007<\/td><\/tr><tr><td>style<\/td><td>\u3007<\/td><td>\u3007<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/block-api\/block-metadata\/#view-script\" target=\"_blank\" rel=\"noreferrer noopener\">Metadata | Block Editor Handbook<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">register_post_type \u2605<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u306eREST API\u30eb\u30fc\u30c8\u306b\u3064\u3044\u3066\u3001\u540d\u524d\u7a7a\u9593\uff08<code>wp\/v2<\/code>\uff09\u3092\u5909\u66f4\u51fa\u6765\u308b <code>rest_namespace<\/code> \u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>\/\/ \u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u306e\u540d\u524d\u7a7a\u9593\u3092\u6307\u5b9a\u3057\u306a\u304b\u3063\u305f\u5834\u5408\n\/\/ \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8: http:\/\/example.com\/wp-json\/wp\/v2\/book\nfunction custom_register_post_type_no_namespace() {\n    $args = array(\n        'public'       =&gt; true,\n        'show_in_rest' =&gt; true,\n        'label'        =&gt; 'Books',\n    );\n    register_post_type( 'book', $args );\n}\nadd_action( 'init', 'custom_register_post_type_no_namespace' );\n\n\/\/ \u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u306e\u540d\u524d\u7a7a\u9593\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\n\/\/ \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8: http:\/\/example.com\/wp-json\/mytheme\/book\nfunction custom_register_post_type_has_namespace() {\n    $args = array(\n        'public'         =&gt; true,\n        'show_in_rest'   =&gt; true,\n        'label'          =&gt; 'Books',\n        'rest_namespace' =&gt; 'mytheme',\n    );\n    register_post_type( 'book', $args );\n}\nadd_action( 'init', 'custom_register_post_type_has_namespace' );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/51962\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 51962 \u2013 WordPress Trac<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">register_sidebar<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b5\u30a4\u30c9\u30d0\u30fc\u3001\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3092REST API\u306b\u542b\u3081\u308b\u304b\u3069\u3046\u304b\u3092\u8a2d\u5b9a\u51fa\u6765\u308b <code>show_in_rest<\/code> \u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_widgets_init() {\n\tregister_sidebar(\n\t\tarray(\n\t\t\t'name'         =&gt; '\u30b5\u30a4\u30c9\u30d0\u30fc',\n\t\t\t'id'           =&gt; 'sidebar-1',\n\t\t\t'show_in_rest' =&gt; false, \/\/ REST API\u3067\u516c\u958b\u3059\u308b\n\t\t)\n\t);\n}\nadd_action( 'widgets_init', 'custom_widgets_init' );\n\n\/\/ \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306e\u4f8b\n\/\/ http:\/\/example.com\/wp-json\/wp\/v2\/sidebars\/\n\/\/ http:\/\/example.com\/wp-json\/wp\/v2\/sidebars\/sidebar-1<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/52016\">Changeset 52016 \u2013 WordPress Trac<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">register_taxonomy \u2605<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30bf\u30fc\u30e0\u306e\u8ffd\u52a0\u30fb\u7de8\u96c6\u753b\u9762\u306b\u304a\u3044\u3066\u3001\u4ee5\u4e0b4\u3064\u306e\u300c\u5404\u5165\u529b\u9805\u76ee\u306e\u8aac\u660e\u6587\u300d\u3092\u6307\u5b9a\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>name_field_description<\/code> \uff08\u300c\u540d\u524d\u300d\u306e\u8aac\u660e\u6587\uff09<\/li>\n\n\n\n<li><code>slug_field_description<\/code>\uff08\u300c\u30b9\u30e9\u30c3\u30b0\u300d\u306e\u8aac\u660e\u6587\uff09<\/li>\n\n\n\n<li><code>parent_field_description<\/code>\uff08\u300c\u89aa\u30ab\u30c6\u30b4\u30ea\u30fc\u300d\u306e\u8aac\u660e\u6587\uff09<\/li>\n\n\n\n<li><code>desc_field_description<\/code>\uff08 \u300c\u8aac\u660e\u300d\u306e\u4e0b\u306b\u8868\u793a\u3055\u308c\u308b\u8aac\u660e\u6587\uff09<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_register_post_type() {\n\t\/\/ \u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u300cBooks\u300d\u306e\u8ffd\u52a0\n\tregister_post_type(\n\t\t\t'book',\n\t\t\tarray(\n\t\t\t\t'public'       =&gt; true,\n\t\t\t\t'label'        =&gt; __( 'Books', 'my-plugin' ),\n\t\t\t\t'show_in_rest' =&gt; true,\n\t\t)\n\t);\n\n\t\/\/ \u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u300cBooks\u300d\u306b\u300cGenre\u300d\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3092\u8ffd\u52a0\n\tregister_taxonomy(\n\t\t'genre',\n\t\t'book',\n\t\tarray(\n\t\t\t'hierarchical' =&gt; true,\n\t\t\t'label'        =&gt; __( 'Genre' ),\n\t\t\t'labels'       =&gt; array(\n\t\t\t\t\/\/ \u300c\u540d\u524d\u300d\u306e\u8aac\u660e\u6587\u3092\u5909\u66f4\n\t\t\t\t'name_field_description' =&gt;  __( 'The genre of the book.', 'my-plugin' ),\n\t\t\t\t\/\/ \u300c\u30b9\u30e9\u30c3\u30b0\u300d\u306e\u8aac\u660e\u6587\u3092\u5909\u66f4\n\t\t\t\t'slug_field_description' =&gt;  __( 'Please enter in lower case.', 'my-plugin' ),\n\t\t\t\t\/\/ \u300c\u89aa\u30ab\u30c6\u30b4\u30ea\u30fc\u300d\u306e\u8aac\u660e\u6587\u3092\u5909\u66f4\n\t\t\t\t'parent_field_description' =&gt;  __( 'Parent genre.', 'my-plugin' ),\n\t\t\t\t\/\/ \u300c\u8aac\u660e\u300d\u306e\u4e0b\u306b\u8868\u793a\u3055\u308c\u308b\u8aac\u660e\u6587\u3092\u5909\u66f4\n\t\t\t\t'desc_field_description' =&gt;  __( 'Genre Overview.', 'my-plugin' ),\n\t\t\t),\n\t\t)\n\t);\n}\nadd_action( 'init', 'custom_register_post_type' );<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"840\" height=\"549\" src=\"https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_10-840x549.png\" alt=\"\u5404\u5165\u529b\u9805\u76ee\u306e\u8aac\u660e\u6587\" class=\"wp-image-925\" srcset=\"https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_10-840x549.png 840w, https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_10-768x502.png 768w, https:\/\/aki-hamano.blog\/wp-content\/uploads\/2024\/06\/wp5-9-php_10.png 869w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/make.wordpress.org\/core\/2021\/12\/13\/posts-post-types-and-taxonomy-changes-in-wordpress-5-9\/#new-labels-available-in-register-taxonomy\" target=\"_blank\" rel=\"noreferrer noopener\">Title: Posts, Post types and Taxonomy changes in WordPress 5.9 \u2013 Make WordPress Core<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306eREST API\u30eb\u30fc\u30c8\u306b\u3064\u3044\u3066\u3001\u540d\u524d\u7a7a\u9593\uff08<code>wp\/v2<\/code>\uff09\u3092\u5909\u66f4\u51fa\u6765\u308b <code>rest_namespace<\/code> \u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code lang-php\"><code>function custom_register_post_type() {\n\t\/\/ \u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u300cBooks\u300d\u306e\u8ffd\u52a0\n\t$args = array(\n\t\t'public'       =&gt; true,\n\t\t'label'        =&gt; __( 'Books', 'my-plugin' ),\n\t\t'show_in_rest' =&gt; true,\n\t);\n\tregister_post_type( 'book', $args );\n\n\t\/\/ \u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306e\u540d\u524d\u7a7a\u9593\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\n\t$args = array(\n\t\t'label'        =&gt; __( 'Genre' ),\n\t\t'show_in_rest' =&gt; true,\n\t);\n\tregister_taxonomy( 'genre', 'book', $args );\n    \/\/ \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\n\t\/\/ http:\/\/example.com\/wp-json\/wp\/v2\/genre\n\n\t\/\/ \u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306e\u540d\u524d\u7a7a\u9593\u3092\u6307\u5b9a\u3057\u306a\u304b\u3063\u305f\u5834\u5408\n\t$args = array(\n\t\t'label'          =&gt; __( 'Genre' ),\n\t\t'show_in_rest'   =&gt; true,\n\t\t'rest_namespace' =&gt; 'mytheme',\n\t);\n\tregister_taxonomy( 'genre', 'book', $args );\n    \/\/ \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\n\t\/\/ http:\/\/example.com\/wp-json\/mytheme\/genre\n}\nadd_action( 'init', 'custom_register_post_type' );<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">sanitize_url<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>esc_url_raw<\/code> \u306e\u30a2\u30e9\u30a4\u30a2\u30b9\u3067\u3059\u3002 WordPress 2.8.0\u3067\u5ec3\u6b62\u3055\u308c\u307e\u3057\u305f\u304c\u3001\u4ed6\u306e <code>sanitize_*()<\/code> \u7cfb\u306e\u95a2\u6570\u3068\u306e\u6574\u5408\u6027\u3092\u4fdd\u3064\u305f\u3081\u306b\u5fa9\u6d3b\u3057\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/51597\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 51597 \u2013 WordPress Trac<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">wp_readonly<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>readonly<\/code> \u5c5e\u6027\u3092\u6761\u4ef6\u306b\u3088\u3063\u3066\u8868\u793a\u3059\u308b <code>readonly<\/code> \u3068\u3044\u3046\u95a2\u6570\u304c\u3042\u308a\u307e\u3057\u305f\u304c\u3001PHP 8.1\u3067\u4e88\u7d04\u8a9e\u3068\u306a\u3063\u305f\u3081\u3001\u95a2\u6570\u540d\u304c <code>wp_readonly<\/code> \u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/51586\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 51586 \u2013 WordPress Trac<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u305f\u30d5\u30a3\u30eb\u30bf\u2015\u30d5\u30c3\u30af<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f71\u97ff\u304c\u5927\u304d\u305d\u3046\u306a\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u306e\u307f\u3092\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">pre_render_block \/ render_block_data \/ render_block_context \u2605<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5358\u4e00\u306e\u30d6\u30ed\u30c3\u30af\u3092HTML\u6587\u5b57\u5217\u306b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b <code>render_block<\/code> \u95a2\u6570\u306e\u4e2d\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u3001\u4e09\u3064\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u308c\u305e\u308c\u306e\u30d5\u30c3\u30af\u306e\u7b2c\u4e09\u5f15\u6570\u306b <code>$parent_block<\/code> \u304c\u8ffd\u52a0\u3055\u308c\u3001<strong>\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u308b\u30d6\u30ed\u30c3\u30af\u304c\u89aa\u30d6\u30ed\u30c3\u30af\u3092\u6301\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b<\/strong>\u3092\u5224\u5225\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u540d<\/th><th>\u6982\u8981<\/th><\/tr><\/thead><tbody><tr><td>pre_render_block<\/td><td>null\u4ee5\u5916\u3092\u8fd4\u5374\u3059\u308b\u4e8b\u3067\u3001\u4efb\u610f\u306eHTML\u6587\u5b57\u5217\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u4e8b\u304c\u51fa\u6765\u308b<\/td><\/tr><tr><td>render_block_data<\/td><td>\u30d6\u30ed\u30c3\u30af\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u524d\u306b\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b<\/td><\/tr><tr><td>render_block_context<\/td><td>\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u305f\u30d6\u30ed\u30c3\u30af\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/51894\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 51894 \u2013 WordPress Trac<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">render_block \/ render_block_{block_name}<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5358\u4e00\u306e\u30d6\u30ed\u30c3\u30af\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u30d5\u30c3\u30af\u306b\u306e\u7b2c3\u5f15\u6570\u306b\u3001<code>$instance<\/code>\uff08\u30d6\u30ed\u30c3\u30af\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\uff09\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>render_block_{block_name}<\/code> \u30d5\u30a3\u30eb\u30bf\u30fc\u306b\u3064\u3044\u3066\u306f\u3001\u7279\u5b9a\u306e\u30d6\u30ed\u30c3\u30af\u306e\u307f\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002 \u4f8b\uff1a<code>render_block_core\/paragraph<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/51841\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 51841 \u2013 WordPress Trac<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u975e\u63a8\u5968\u3068\u306a\u3063\u305f\u95a2\u6570<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">readonly<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>readonly<\/code> \u304cPHP 8.1\u3067\u4e88\u7d04\u8a9e\u3068\u306a\u3063\u305f\u305f\u3081\u975e\u63a8\u5968\u3068\u306a\u308a\u3001\u95a2\u6570\u540d\u304c <code>wp_readonly<\/code> \u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/core.trac.wordpress.org\/changeset\/51586\" target=\"_blank\" rel=\"noreferrer noopener\">Changeset 51586 \u2013 WordPress Trac<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u305d\u306e\u4ed6<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306b\u3064\u3044\u3066\u306f\u3001\u3069\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3069\u3093\u306a\u6642\u306b\u4f7f\u3046\u306e\u304b\u3001\u81ea\u5206\u306e\u77e5\u8b58\u30fb\u6280\u8853\u3067\u306f\u7406\u89e3\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002 \uff08\u5168\u3066\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u306eREST API\u95a2\u9023\u306e\u30d5\u30c3\u30af\u306e\u3088\u3046\u3067\u3059\u3002\uff09<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3082\u3057\u3054\u5b58\u3058\u306e\u65b9\u304c\u3044\u307e\u3057\u305f\u3089\u3001\u30b3\u30e1\u30f3\u30c8\u304a\u5f85\u3061\u3057\u3066\u304a\u308a\u307e\u3059\uff01<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u65b0\u898f\u8ffd\u52a0\u3055\u308c\u305f\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li><code>rest_pre_insert_nav_menu_item<\/code><\/li>\n\n\n\n<li><code>rest_prepare_menu_location<\/code><\/li>\n\n\n\n<li><code>rest_prepare_nav_menu_item<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u65b0\u898f\u8ffd\u52a0\u3055\u308c\u305f\u30a2\u30af\u30b7\u30e7\u30f3\u30d5\u30c3\u30af<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li><code>rest_insert_nav_menu_item<\/code><\/li>\n\n\n\n<li><code>rest_after_insert_nav_menu_item<\/code><\/li>\n\n\n\n<li><code>rest_delete_nav_menu_item<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b 2022\u5e741\u670825\u65e5\u306bWordPress 5.9\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002 WordPress5.9\u3067\u76ee\u7389\u3068\u306a\u308b\u6a5f\u80fd\u306fFull Site Editing\u3067\u3059\u304c\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306fPHP\u30b3\u30fc\u30c9\u306b\u7126\u70b9\u3092\u7d5e\u308a\u3001\u65b0\u305f\u306b\u8ffd\u52a0\u3055\u308c\u305f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/aki-hamano.blog\/?p=377","footnotes":""},"categories":[17],"tags":[],"class_list":["post-377","post","type-post","status-publish","format-standard","hentry","category-wordpress-core","ja"],"_links":{"self":[{"href":"https:\/\/aki-hamano.blog\/wp-json\/wp\/v2\/posts\/377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aki-hamano.blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aki-hamano.blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aki-hamano.blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aki-hamano.blog\/wp-json\/wp\/v2\/comments?post=377"}],"version-history":[{"count":34,"href":"https:\/\/aki-hamano.blog\/wp-json\/wp\/v2\/posts\/377\/revisions"}],"predecessor-version":[{"id":927,"href":"https:\/\/aki-hamano.blog\/wp-json\/wp\/v2\/posts\/377\/revisions\/927"}],"wp:attachment":[{"href":"https:\/\/aki-hamano.blog\/wp-json\/wp\/v2\/media?parent=377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aki-hamano.blog\/wp-json\/wp\/v2\/categories?post=377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aki-hamano.blog\/wp-json\/wp\/v2\/tags?post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}