{"id":66976,"date":"2025-11-06T16:51:52","date_gmt":"2025-11-06T07:51:52","guid":{"rendered":"https:\/\/kinsta.com\/jp\/?p=66976&#038;preview=true&#038;preview_id=66976"},"modified":"2025-11-25T21:31:51","modified_gmt":"2025-11-25T12:31:51","slug":"wordpress-interactivity-api","status":"publish","type":"post","link":"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/","title":{"rendered":"Interactivity API\u3068\u306f\uff1f\u6700\u65b0WordPress\u30d6\u30ed\u30c3\u30af\u958b\u767a\u306b\u4fbf\u5229"},"content":{"rendered":"<p data-start=\"0\" data-end=\"197\">\u3053\u308c\u307e\u3067\u3053\u306e\u30d6\u30ed\u30b0\u306e\u6295\u7a3f\u3067\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u89d2\u5ea6\u304b\u3089 WordPress \u30d6\u30ed\u30c3\u30af\u958b\u767a\u3092\u63a2\u3063\u3066\u304d\u307e\u3057\u305f\u3002<a href=\"https:\/\/kinsta.com\/jp\/blog\/gutenberg-blocks\/\">\u9759\u7684\u30d6\u30ed\u30c3\u30af<\/a>\u3068<a href=\"https:\/\/kinsta.com\/blog\/dynamic-blocks\/\">\u52d5\u7684\u30d6\u30ed\u30c3\u30af<\/a>\u306e\u4e21\u65b9\u306e\u958b\u767a\u3092\u691c\u8a0e\u3057\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/gutenberg-plugin\/\">\u30b3\u30a2\u30d6\u30ed\u30c3\u30af\u306e\u6a5f\u80fd\u62e1\u5f35<\/a>\u3082\u884c\u3063\u3066\u304d\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u3053\u308c\u307e\u3067\u63a1\u7528\u3057\u3066\u304d\u305f\u30a2\u30d7\u30ed\u30fc\u30c1\u3067\u306f\u3001\u57fa\u672c\u7684\u306b\u30e6\u30fc\u30b6\u30fc\u306e\u64cd\u4f5c\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u53cd\u5fdc\u3057\u306a\u3044\u6a19\u6e96\u7684\u306a\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3057\u304b\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3064\u307e\u308a\u3001\u3053\u308c\u3089\u306e\u30d6\u30ed\u30c3\u30af\u306f\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u3067\u306f\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u3002<\/p>\n<p data-start=\"199\" data-end=\"418\" data-is-last-node data-is-only-node>\u672c\u8a18\u4e8b\u3067\u306f\u3001WordPress\u306e\u5f37\u529b\u306a\u65b0API\u300c<strong>WordPress Interactivity API<\/strong>\u300d\u3092\u6d3b\u7528\u3057\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u65b0\u305f\u306a\u30d6\u30ed\u30c3\u30af\u958b\u767a\u624b\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-6-5\/#interactivity-api\">WordPress 6.5<\/a>\u3067\u5c0e\u5165\u3055\u308c\u305f\u3053\u306eAPI\u306b\u3088\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u64cd\u4f5c\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u53cd\u5fdc\u3059\u308b\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3067\u304d\u3001\u3088\u308a\u8c4a\u304b\u3067\u9b45\u529b\u7684\u3001\u305d\u3057\u3066\u52d5\u304d\u306e\u3042\u308b\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u3092\u63d0\u4f9b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" exclude=\"last\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc>\n<h2>Interactivity API\u3092\u4f7f\u7528\u3059\u308b\u969b\u306e\u6e96\u5099<\/h2>\n<p data-start=\"0\" data-end=\"163\">Interactivity API\u306fReact\u3092\u57fa\u76e4\u3068\u3057\u3066\u3044\u308b\u305f\u3081\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-node-js\/\">\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9JavaScript<\/a>\u3068React\u306e\u57fa\u672c\u7684\u306a\u77e5\u8b58\u306b\u52a0\u3048\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-npm\/\">npm<\/a>\u3084npx\u306a\u3069\u306e\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u306e\u77e5\u8b58\u304c\u5c11\u306a\u304f\u3068\u3082\u5fc5\u8981\u3067\u3059\u3002\u307e\u305f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/wp-scripts-development\/\">WordPress<\/a>\u958b\u767a\u304a\u3088\u3073<a href=\"https:\/\/kinsta.com\/jp\/blog\/gutenberg-wordpress-editor\/\">Gutenberg\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u30fc<\/a>\u306b\u95a2\u3059\u308b\u5341\u5206\u306a\u7406\u89e3\u3082\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<p data-start=\"0\" data-end=\"163\">\u5fc5\u8981\u306a\u30b9\u30ad\u30eb\u3092\u7fd2\u5f97\u3057\u305f\u3089\u3001WordPress\u30b5\u30a4\u30c8\u3092\u3059\u3070\u3084\u304f\u7c21\u5358\u306b\u7acb\u3061\u4e0a\u3052\u3089\u308c\u308b<a href=\"https:\/\/kinsta.com\/blog\/mamp-alternative\/\">\u30ed\u30fc\u30ab\u30eb\u958b\u767a\u74b0\u5883<\/a>\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002Kinsta\u3067\u306f\u3001WordPress\u5c02\u7528\u306b\u8a2d\u8a08\u3057\u305f\u30ed\u30fc\u30ab\u30eb\u958b\u767a\u30c4\u30fc\u30eb\u3001<a href=\"https:\/\/kinsta.com\/jp\/devkinsta\/\">DevKinsta<\/a>\u3092\u7121\u6599\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002DevKinsta\u3067\u306f\u3001\u6570\u56de\u306e\u30af\u30ea\u30c3\u30af\u3067\u30ed\u30fc\u30ab\u30ebWordPress\u30b5\u30a4\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u3001\u7d30\u304b\u304f\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p data-start=\"351\" data-end=\"407\" data-is-last-node data-is-only-node>\u65b0\u898fWordPress\u30b5\u30a4\u30c8\u306e\u4f5c\u6210\u6642\u306b\u306f\u3001\u4ee5\u4e0b\u3092\u8a2d\u5b9a\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30c8\u30c3\u30d7\u30ec\u30d9\u30eb\u30c9\u30e1\u30a4\u30f3\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u306e.local\uff09<\/li>\n<li>PHP\u30d0\u30fc\u30b8\u30e7\u30f3<\/li>\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d<\/li>\n<li>HTTPS\u306e\u4f7f\u7528<\/li>\n<li>WordPress\u306e\u8a73\u7d30<\/li>\n<li>WordPress\u306e\u81ea\u52d5\u66f4\u65b0<\/li>\n<li>\u30de\u30eb\u30c1\u30b5\u30a4\u30c8<\/li>\n<\/ul>\n<p>Kinsta\u3092\u3054\u5229\u7528\u306e\u5834\u5408\u306f\u3001MyKinsta\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304b\u3089\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_66992\" aria-describedby=\"caption-attachment-66992\" style=\"width: 1280px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-66992 size-full\" src=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/devkinsta-advanced-settings.png\" alt=\"DevKinsta\u3067\u30ed\u30fc\u30ab\u30eb\u30b5\u30a4\u30c8\u3092\u4f5c\u6210\" width=\"1280\" height=\"870\" srcset=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/devkinsta-advanced-settings.png 1280w, https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/devkinsta-advanced-settings-300x204.png 300w, https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/devkinsta-advanced-settings-1024x696.png 1024w, https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/devkinsta-advanced-settings-768x522.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><figcaption id=\"caption-attachment-66992\" class=\"wp-caption-text\">DevKinsta\u3067\u30ed\u30fc\u30ab\u30eb\u30b5\u30a4\u30c8\u3092\u4f5c\u6210<\/figcaption><\/figure>\n<h2>Interactivity API\u3068\u306f\uff1f<\/h2>\n<p>Interactivity API\u306fWordPress\u306e\u6a19\u6e96API\u3067\u3001Gutenberg\u30d6\u30ed\u30c3\u30af\u3001\u3072\u3044\u3066\u306fWordPress\u30b5\u30a4\u30c8\u306e\u6295\u7a3f\u3084\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u300c\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u6027\u300d\u3092\u3082\u305f\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e<a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/interactivity-api\/core-concepts\/the-reactive-and-declarative-mindset\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u5ba3\u8a00\u7684\u306a\u30a2\u30d7\u30ed\u30fc\u30c1<\/a>\u3092\u3068\u308b\u3001\u8efd\u91cf\u3067\u6700\u65b0\u306e\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30d6\u30ed\u30c3\u30af\u3092\u30bc\u30ed\u304b\u3089\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u9ad8\u5ea6\u306aPHP\u3068<a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/interactivity-api\/core-concepts\/server-side-rendering\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9JavaScript<\/a>\u306e\u958b\u767a\u6280\u8853\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u304c\u3001WordPress\u306b\u306f<a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/packages\/packages-create-block-interactive-template\/\">\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/a>\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u65b0\u305f\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b\u958b\u767a\u3092\u884c\u3046\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<pre><code class=\"language-bash\">npx @wordpress\/create-block --template @wordpress\/create-block-interactive-template<\/code><\/pre>\n<p>\u3053\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u306f\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u3082\u306e\u304c\u3059\u3079\u3066\u63c3\u3063\u3066\u304a\u308a\u3001\u6700\u521d\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3068\u3057\u3066\u4f7f\u3048\u308b\u5b9f\u4f8b\u30822\u3064\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u304a\u597d\u304d\u306a\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3092\u958b\u304d\u3001\u30ed\u30fc\u30ab\u30ebWordPress\u30b5\u30a4\u30c8\u306e<strong>Plugins<\/strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3066\u3001\u4ee5\u4e0b\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">npx @wordpress\/create-block your-interactive-block --template @wordpress\/create-block-interactive-template<\/code><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3059\u308b\u306e\u3092\u5f85\u3061\u3001\u4efb\u610f\u306e<a href=\"https:\/\/kinsta.com\/jp\/blog\/free-html-editor\/\">\u30b3\u30fc\u30c9\u30a8\u30c7\u30a3\u30bf\u30fc<\/a>\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u3092\u958b\u304d\u307e\u3059\u3002\u7279\u306b\u3053\u3060\u308f\u308a\u304c\u306a\u3051\u308c\u3070\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/best-text-editors\/#visual-studio-code\">Visual Studio Code<\/a>\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<figure id=\"attachment_199519\" aria-describedby=\"caption-attachment-199519\" style=\"width: 2086px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-199519 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2025\/09\/interactive-block.png\" alt=\"@wordpress\/create-block-interactive-template\u306b\u3088\u308b\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\" width=\"2086\" height=\"1230\"><figcaption id=\"caption-attachment-199519\" class=\"wp-caption-text\"><code>@wordpress\/create-block-interactive-template<\/code>\u306b\u3088\u308b\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8<\/figcaption><\/figure>\n<p>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u3001\u65b0\u3057\u3044\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067<a href=\"https:\/\/developer.wordpress.org\/block-editor\/getting-started\/quick-start-guide\/#basic-usage\" target=\"_blank\" rel=\"noopener noreferrer\">\u958b\u767a\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5<\/a>\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">npm start<\/code><\/pre>\n<p>\u3053\u308c\u4ee5\u964d\u3001\u30d6\u30ed\u30c3\u30af\u306b\u52a0\u3048\u305f\u5909\u66f4\u306f\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067WordPress\u306b\u53cd\u6620\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u7d9a\u3044\u3066WordPress\u7ba1\u7406\u753b\u9762\u3067\u300c<strong>\u30d7\u30e9\u30b0\u30a4\u30f3<\/strong>\u300d\u306b\u79fb\u52d5\u3057\u3001\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f<strong>Interactivity API<\/strong>\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002\u65b0\u898f\u6295\u7a3f\u307e\u305f\u306f\u56fa\u5b9a\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3001\u30d6\u30ed\u30c3\u30af\u30a4\u30f3\u30b5\u30fc\u30bf\u3067\u300c<strong>Your interactive block<\/strong>\uff08\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\uff09\u300d\u3092\u691c\u7d22\u3057\u3066\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\u6295\u7a3f\u3092\u4fdd\u5b58\u3057\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3067\u30d7\u30ec\u30d3\u30e5\u30fc\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b2\u3064\u306e\u30dc\u30bf\u30f3\u3092\u542b\u3080\u9ec4\u8272\u3044\u30d6\u30ed\u30c3\u30af\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u300cSwitch to&#8230;\u300d\u306f\u30d6\u30ed\u30c3\u30af\u306e\u80cc\u666f\u8272\u3092\u5909\u66f4\u3057\u3001\u300cToggle\u300d\u306f\u6bb5\u843d\u306e\u5185\u5bb9\u3092\u8868\u793a\u307e\u305f\u306f\u975e\u8868\u793a\u306b\u3057\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_199520\" aria-describedby=\"caption-attachment-199520\" style=\"width: 1405px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-199520 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2025\/09\/interactivity-api-example.png\" alt=\"@wordpress\/create-block-interactive-template\u306b\u3088\u308b\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u306e\u4f8b\" width=\"1405\" height=\"696\"><figcaption id=\"caption-attachment-199520\" class=\"wp-caption-text\"><code>@wordpress\/create-block-interactive-template<\/code>\u306b\u3088\u308b\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u306e\u4f8b<\/figcaption><\/figure>\n<p>\u3053\u308c\u3067\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u3059\u308b\u305f\u3081\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u5b8c\u6210\u3057\u305f\u305f\u3081\u3001\u7d9a\u3044\u3066\u306f\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u3092\u8a73\u3057\u304f\u6398\u308a\u4e0b\u3052\u3066\u307f\u307e\u3059\u3002<\/p>\n<h2>\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u306e\u69cb\u9020<\/h2>\n<p>\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u306e\u69cb\u9020\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/gutenberg-blocks\/#a-walkthrough-of-the-starter-block-scaffolding\">\u5f93\u6765\u306e\u30d6\u30ed\u30c3\u30af<\/a>\u3068\u540c\u3058\u3067\u3059\u3002<code>package.json<\/code>\u3001<code>block.json<\/code>\u3001<code>edit.js<\/code>\u30d5\u30a1\u30a4\u30eb\u3001<code>style.scss<\/code>\u30d5\u30a1\u30a4\u30eb\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u307e\u305f\u52a0\u3048\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u7528\u306e<code data-start=\"58\" data-end=\"70\">render.php<\/code>\u30d5\u30a1\u30a4\u30eb\u3068\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u52d5\u4f5c\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306e<code data-start=\"105\" data-end=\"114\">view.js<\/code>\u30d5\u30a1\u30a4\u30eb\u3082\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3001\u30b9\u30bf\u30fc\u30bf\u30fc\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u500b\u3005\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u308a\u4e0a\u3052\u3066\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u306e\u69cb\u9020\u3092\u8a73\u3057\u304f\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3>package.json<\/h3>\n<p><code>package.json<\/code>\u30d5\u30a1\u30a4\u30eb\u306f\u3001<a href=\"https:\/\/docs.npmjs.com\/cli\/v7\/configuring-npm\/package-json\" target=\"_blank\" rel=\"noopener noreferrer\">Node\u30d7\u30ed\u30b8\u30a7\u30af\u30c8<\/a>\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8b58\u5225\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u7ba1\u7406\u3001\u958b\u767a\u4e2d\u306e\u4f9d\u5b58\u95a2\u4fc2\u306e\u7ba1\u7406\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001<code>create-block-interactive-template<\/code>\u306b\u3088\u308b\u5bfe\u8a71\u578b\u30d6\u30ed\u30c3\u30af\u306e<code>package.json<\/code>\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-json\">{\n\t\"name\": \"your-interactive-block\",\n\t\"version\": \"0.1.0\",\n\t\"description\": \"An interactive block with the Interactivity API.\",\n\t\"author\": \"The WordPress Contributors\",\n\t\"license\": \"GPL-2.0-or-later\",\n\t\"main\": \"build\/index.js\",\n\t\"scripts\": {\n\t\t\"build\": \"wp-scripts build --experimental-modules\",\n\t\t\"format\": \"wp-scripts format\",\n\t\t\"lint:css\": \"wp-scripts lint-style\",\n\t\t\"lint:js\": \"wp-scripts lint-js\",\n\t\t\"packages-update\": \"wp-scripts packages-update\",\n\t\t\"plugin-zip\": \"wp-scripts plugin-zip\",\n\t\t\"start\": \"wp-scripts start --experimental-modules\"\n\t},\n\t\"dependencies\": {\n\t\t\"@wordpress\/interactivity\": \"latest\"\n\t},\n\t\"files\": [\n\t\t\"[^.]*\"\n\t],\n\t\"devDependencies\": {\n\t\t\"@wordpress\/scripts\": \"^30.24.0\"\n\t}\n}<\/code><\/pre>\n<p>\u3053\u3053\u3067\u306f\u3001<code>scripts<\/code>\u3068<code>dependencies<\/code>\u30bb\u30af\u30b7\u30e7\u30f3\u304c\u7279\u306b\u91cd\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><code>build<\/code>\uff1a\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u672c\u756a\u7528\u306eJavaScript\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3002<code>--experimental-modules<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u306fWordPress<a href=\"https:\/\/make.wordpress.org\/core\/2024\/03\/04\/script-modules-in-6-5\/\">\u30b9\u30af\u30ea\u30d7\u30c8\u30e2\u30b8\u30e5\u30fc\u30eb<\/a>\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u6709\u52b9\u5316\u3059\u308b\u3082\u306e\u3002<\/li>\n<li><code>start<\/code>\uff1a\u958b\u767a\u7528\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3059\u308b\u3002<code>--experimental-modules<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u518d\u5ea6\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3002<\/li>\n<li><code>dependencies<\/code>\uff1aInteractivity API\u306e\u6700\u65b0\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30e9\u30f3\u30bf\u30a4\u30e0\u4f9d\u5b58\u95a2\u4fc2\u3092\u542b\u3081\u308b\u3002<\/li>\n<\/ul>\n<h3>block.json<\/h3>\n<p><code>block.json<\/code>\u30d5\u30a1\u30a4\u30eb\u306fGutenberg\u30d6\u30ed\u30c3\u30af\u306e\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\uff08\u8a2d\u5b9a\u60c5\u5831\u30d5\u30a1\u30a4\u30eb\uff09\u3067\u3059\u3002\u8aad\u307f\u8fbc\u3080\u30e1\u30bf\u30c7\u30fc\u30bf\u3001\u30e1\u30c7\u30a3\u30a2\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3001\u30b9\u30bf\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u3001<code>create-block-interactive-template<\/code>\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u4ee5\u4e0b\u306e<code>block.json<\/code>\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-json\">{\n\t\"$schema\": \"https:\/\/schemas.wp.org\/trunk\/block.json\",\n\t\"apiVersion\": 3,\n\t\"name\": \"create-block\/your-interactive-block\",\n\t\"version\": \"0.1.0\",\n\t\"title\": \"Your Interactive Block\",\n\t\"category\": \"widgets\",\n\t\"icon\": \"media-interactive\",\n\t\"description\": \"An interactive block with the Interactivity API.\",\n\t\"example\": {},\n\t\"supports\": {\n\t\t\"interactivity\": true\n\t},\n\t\"textdomain\": \"your-interactive-block\",\n\t\"editorScript\": \"file:.\/index.js\",\n\t\"editorStyle\": \"file:.\/index.css\",\n\t\"style\": \"file:.\/style-index.css\",\n\t\"render\": \"file:.\/render.php\",\n\t\"viewScriptModule\": \"file:.\/view.js\"\n}<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306f\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u306b\u5fc5\u9808\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u3059\u3002<\/p>\n<ul>\n<li><code>apiVersion<\/code>\uff1a<code>3<\/code>\u306f\u30d6\u30ed\u30c3\u30afAPI\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30e2\u30b8\u30e5\u30fc \u30eb\u306a\u3069\u306e\u6700\u65b0\u306e\u30d6\u30ed\u30c3\u30af\u6a5f\u80fd\u306b\u5bfe\u5fdc\u3002<\/li>\n<li><code>supports<\/code>\uff1a\u30d6\u30ed\u30c3\u30af\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u6307\u5b9a\u3002<code>\"interactivity\": true<\/code>\u306f\u3001 Interactivity API\u306e\u30b5\u30dd\u30fc \u30c8\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/li>\n<li><code>render<\/code>\uff1a\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3067\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3092\u62c5\u5f53\u3059\u308bPHP\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u30d6\u30ed\u30c3\u30af\u3092\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/li>\n<li><code>viewScriptModule<\/code>\uff1a\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30ed\u30b8\u30c3\u30af\u3092\u542b\u3080JavaScript\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3002\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3067\u306e\u307f\u3001\u305d\u3057\u3066\u30da\u30fc\u30b8\u304c\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u3092\u542b\u3080\u5834\u5408\u306b\u306e\u307f\u8aad\u307f\u8fbc\u307e\u308c\u308b\u3002<\/li>\n<\/ul>\n<h3>render.php<\/h3>\n<p><code>render.php<\/code>\u306f\u52d5\u7684\u30d6\u30ed\u30c3\u30af\u306e\u30de\u30fc\u30af\u30a2\u30c3\u30d7\u3092\u69cb\u7bc9\u3059\u308b\u5834\u6240\u306b\u306a\u308a\u307e\u3059\u3002\u30d6\u30ed\u30c3\u30af\u3092\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\u306b\u306f\u3001\u30d6\u30ed\u30c3\u30af\u306eDOM\u8981\u7d20\u3092\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\u5c5e\u6027\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30bf\u30fc\u30bf\u30fc\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e<code>render.php<\/code>\u30d5\u30a1\u30a4\u30eb\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-php\">&lt;?php\n\/**\n * \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u30d6\u30ed\u30c3\u30af\u30bf\u30a4\u30d7\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306b\u8868\u793a\u3059\u308b\u969b\u306b\u4f7f\u7528\u3059\u308bPHP\u30d5\u30a1\u30a4\u30eb\n *\n * \u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u5229\u7528\u3067\u304d\u308b\u5909\u6570\u306f\u6b21\u306e\u901a\u308a\n *     $attributes (array): \u30d6\u30ed\u30c3\u30af\u5c5e\u6027\n *     $content (string): \u30d6\u30ed\u30c3\u30af\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30b3\u30f3\u30c6\u30f3\u30c4\n *     $block (WP_Block): \u30d6\u30ed\u30c3\u30af\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\n *\n * @see https:\/\/github.com\/WordPress\/gutenberg\/blob\/trunk\/docs\/reference-guides\/block-api\/block-metadata.md#render\n *\/\n\n\/\/ aria-controls\u7528\u306e\u4e00\u610f\u306eID\u3092\u751f\u6210\n$unique_id = wp_unique_id( 'p-' );\n\n\/\/ \u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u3092\u8ffd\u52a0\nwp_interactivity_state(\n\t'create-block',\n\tarray(\n\t\t'isDark'    =&gt; false,\n\t\t'darkText'  =&gt; esc_html__( 'Switch to Light', 'your-interactive-block' ),\n\t\t'lightText' =&gt; esc_html__( 'Switch to Dark', 'your-interactive-block' ),\n\t\t'themeText'\t=&gt; esc_html__( 'Switch to Dark', 'your-interactive-block' ),\n\t)\n);\n?&gt;\n\n&lt;div\n\t&lt;?php echo get_block_wrapper_attributes(); ?&gt;\n\tdata-wp-interactive=\"create-block\"\n\t&lt;?php echo wp_interactivity_data_wp_context( array( 'isOpen' =&gt; false ) ); ?&gt;\n\tdata-wp-watch=\"callbacks.logIsOpen\"\n\tdata-wp-class--dark-theme=\"state.isDark\"\n&gt;\n\t&lt;button\n\t\tdata-wp-on--click=\"actions.toggleTheme\"\n\t\tdata-wp-text=\"state.themeText\"\n\t&gt;&lt;\/button&gt;\n\n\t&lt;button\n\t\tdata-wp-on--click=\"actions.toggleOpen\"\n\t\tdata-wp-bind--aria-expanded=\"context.isOpen\"\n\t\taria-controls=\"&lt;?php echo esc_attr( $unique_id ); ?&gt;\"\n\t&gt;\n\t\t&lt;?php esc_html_e( 'Toggle', 'your-interactive-block' ); ?&gt;\n\t&lt;\/button&gt;\n\n\t&lt;p\n\t\tid=\"&lt;?php echo esc_attr( $unique_id ); ?&gt;\"\n\t\tdata-wp-bind--hidden=\"!context.isOpen\"\n\t&gt;\n\t\t&lt;?php\n\t\t\tesc_html_e( 'Your Interactive Block - hello from an interactive block!', 'your-interactive-block' );\n\t\t?&gt;\n\t&lt;\/p&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<p>\u305d\u308c\u305e\u308c\u306e\u5f79\u5272\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><code>wp_interactivity_state<\/code>\uff1aInteractivity API\u30b9\u30c8\u30a2\u306e<a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_interactivity_state\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u521d\u671f\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8<\/a>\u3092\u53d6\u5f97\u307e\u305f\u306f\u8a2d\u5b9a\u3002<\/li>\n<li><code>data-wp-interactive<\/code>\uff1aDOM\u8981\u7d20\u3068\u305d\u306e\u5b50\u8981\u7d20\u306e<a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/interactivity-api\/api-reference\/#wp-interactive\">Interactivity API\u3092\u6709\u52b9<\/a>\u306b\u3059\u308b\u3002\u5024\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u307e\u305f\u306f\u30d6\u30ed\u30c3\u30af\u306e\u56fa\u6709\u306e\u540d\u524d\u7a7a\u9593\u3092\u8a2d\u5b9a\u3002<\/li>\n<li><code>wp_interactivity_data_wp_context()<\/code>\uff1a\u7279\u5b9a\u306eHTML\u30ce\u30fc\u30c9\u3068\u305d\u306e\u5b50\u306b<a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_interactivity_data_wp_context\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30ed\u30fc\u30ab\u30eb\u30b9\u30c6\u30fc\u30c8\u3092\u63d0\u4f9b<\/a>\u3059\u308b<code>data-wp-context<\/code>\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u751f\u6210\u3002<\/li>\n<li><code>data-wp-watch<\/code>\uff1a\u30ce\u30fc\u30c9\u4f5c\u6210\u6642\u3068\u3001\u30b9\u30c6\u30fc\u30c8\u3084\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u5909\u66f4\u6642\u306b<a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/interactivity-api\/api-reference\/#wp-watch\">\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u5b9f\u884c<\/a>\u3002<\/li>\n<li><code>data-wp-class--dark-theme<\/code>\uff1aHTML \u8981\u7d20\u306b<code>dark-theme<\/code> \u30af\u30e9\u30b9\u3092\u8ffd\u52a0\u307e\u305f\u306f\u524a\u9664\u3002<\/li>\n<li><code>data-wp-on--click<\/code>\uff1a\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u3067<a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/interactivity-api\/api-reference\/#wp-on\">\u540c\u671f\u7684\u306b\u30b3\u30fc\u30c9\u3092\u5b9f\u884c<\/a>\u3002<\/li>\n<li><code>data-wp-text<\/code>\uff1aHTML\u8981\u7d20\u306e<a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/interactivity-api\/api-reference\/#wp-text\">\u5185\u90e8\u30c6\u30ad\u30b9\u30c8\u3092\u8a2d\u5b9a<\/a>\u3002<\/li>\n<li><code>data-wp-bind--aria-expanded<\/code>\u304a\u3088\u3073<code>data-wp-bind--hidden<\/code>\uff1aboolean\u5024\u307e\u305f\u306f\u6587\u5b57\u5217\u5024\u306b\u57fa\u3065\u3044\u3066\u5bfe\u5fdc\u3059\u308b\u8981\u7d20\u306b<a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/interactivity-api\/api-reference\/#wp-bind\" target=\"_blank\" rel=\"noopener noreferrer\">HTML\u5c5e\u6027\u3092\u8a2d\u5b9a<\/a>\uff08<code>aria-expanded<\/code>\u304a\u3088\u3073<code>hidden<\/code>\uff09\u3002<\/li>\n<\/ul>\n<h3>view.js<\/h3>\n<article class=\"text-token-text-primary w-full focus:outline-none [--shadow-height:45px] has-data-writing-block:pointer-events-none has-data-writing-block:-mt-(--shadow-height) has-data-writing-block:pt-(--shadow-height) [&#038;:has([data-writing-block])&gt;*]:pointer-events-auto [content-visibility:auto] supports-[content-visibility:auto]:[contain-intrinsic-size:auto_100lvh] scroll-mt-[calc(var(--header-height)+min(200px,max(70px,20svh)))]\" dir=\"auto\" data-turn-id=\"request-WEB:93d807ba-8220-4222-9673-2903a45e7799-13\" data-testid=\"conversation-turn-26\" data-scroll-anchor=\"true\" data-turn=\"assistant\">\n<div class=\"text-base my-auto mx-auto pb-10 [--thread-content-margin:--spacing(4)] thread-sm:[--thread-content-margin:--spacing(6)] thread-lg:[--thread-content-margin:--spacing(16)] px-(--thread-content-margin)\">\n<div class=\"[--thread-content-max-width:40rem] thread-lg:[--thread-content-max-width:48rem] mx-auto max-w-(--thread-content-max-width) flex-1 group\/turn-messages focus-visible:outline-hidden relative flex w-full min-w-0 flex-col agent-turn\">\n<div class=\"flex max-w-full flex-col grow\">\n<div class=\"min-h-8 text-message relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal [.text-message+&#038;]:mt-1\" dir=\"auto\" data-message-author-role=\"assistant\" data-message-id=\"d6a87070-0a6b-43cd-8d53-32abe4405397\" data-message-model-slug=\"gpt-5\">\n<div class=\"flex w-full flex-col gap-1 empty:hidden first:pt-[1px]\">\n<div class=\"markdown prose dark:prose-invert w-full break-words dark markdown-new-styling\">\n<p data-start=\"0\" data-end=\"155\" data-is-last-node data-is-only-node>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001\u30b9\u30c6\u30fc\u30c8\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u542b\u3080\u3001\u30d6\u30ed\u30c3\u30af\u306e\u52d5\u4f5c\u306b\u5fc5\u8981\u306a\u30ed\u30b8\u30c3\u30af\u3068\u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3059\u308b<a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/interactivity-api\/api-reference\/#on-the-client-side\">\u30b9\u30c8\u30a2\u3092\u5b9a\u7fa9<\/a>\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/article>\n<p>\u4ee5\u4e0b\u306f\u3001\u30b9\u30bf\u30fc\u30bf\u30fc\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f<code>view.js<\/code>\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">\/**\n * WordPress\u306e\u4f9d\u5b58\u95a2\u4fc2\n *\/\nimport { store, getContext } from '@wordpress\/interactivity';\n\nconst { state } = store( 'create-block', {\n\tstate: {\n\t\tget themeText() {\n\t\t\treturn state.isDark ? state.darkText : state.lightText;\n\t\t},\n\t},\n\tactions: {\n\t\ttoggleOpen() {\n\t\t\tconst context = getContext();\n\t\t\tcontext.isOpen = ! context.isOpen;\n\t\t},\n\t\ttoggleTheme() {\n\t\t\tstate.isDark = ! state.isDark;\n\t\t},\n\t},\n\tcallbacks: {\n\t\tlogIsOpen: () =&gt; {\n\t\t\tconst { isOpen } = getContext();\n\t\t\t\/\/ isOpen \u304c\u5909\u66f4\u3055\u308c\u308b\u305f\u3073\u306b\u305d\u306e\u5024\u3092\u30ed\u30b0\u306b\u51fa\u529b\n\t\t\tconsole.log( `Is open: ${ isOpen }` );\n\t\t},\n\t},\n} );<\/code><\/pre>\n<ul>\n<li><code>store<\/code>\uff1a\u30d6\u30ed\u30c3\u30af\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u3068\u30ed\u30b8\u30c3\u30af\u306e\u4f5c\u6210\u3068\u767b\u9332\u306b\u4f7f\u7528\u3055\u308c\u308b\u30e1\u30a4\u30f3\u95a2\u6570\u3002<\/li>\n<li><code>getContext<\/code>\uff1a\u30a4\u30d9\u30f3\u30c8\u3092\u30c8\u30ea\u30ac\u30fc\u3057\u305fDOM\u8981\u7d20\u306e\u30ed\u30fc\u30ab\u30eb\u30b9\u30c6\u30fc\u30c8\uff08<code>context<\/code> \uff09\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u3084\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u5185\u3067\u4f7f\u7528\u3055\u308c\u308b\u95a2\u6570\u3002<\/li>\n<li><code>state<\/code>\uff1a\u30d6\u30ed\u30c3\u30af\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u306a\u30ea\u30a2\u30af\u30c6\u30a3\u30d6\u30c7\u30fc\u30bf\u3092\u5b9a\u7fa9\u3002<\/li>\n<li><code>actions<\/code>\uff1a\u30ed\u30b8\u30c3\u30af\u3092\u5b9a\u7fa9\u3057\u3001\u30b9\u30c6\u30fc\u30c8\u3092\u5909\u66f4\u3059\u308b\u95a2\u6570\u3092\u542b\u3080\u3002<\/li>\n<li><code>callbacks<\/code>\uff1a\u7279\u5b9a\u306e\u30a4\u30d9\u30f3\u30c8\u3084\u30b9\u30c6\u30fc\u30c8\u306e\u5909\u5316\u306b\u5fdc\u3058\u3066\u81ea\u52d5\u7684\u306b\u5b9f\u884c\u3055\u308c\u308b\u95a2\u6570\u3092\u542b\u3080\u3002<\/li>\n<\/ul>\n<p>\u3053\u306e\u3088\u3046\u306b\u591a\u6570\u306e\u8981\u7d20\u304c\u3042\u308a\u3001\u6df7\u4e71\u3057\u305d\u3046\u3067\u3059\u304c\u3001\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u8aad\u3081\u3070\u5168\u4f53\u304c\u63b4\u3081\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u306f\u3001Interactivity API\u306e\u4e3b\u8981\u306a\u6982\u5ff5\u3067\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3001\u30b9\u30c8\u30a2\u3001\u30b9\u30c6\u30fc\u30c8\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>Interactivity API\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6<\/h2>\n<p>Alpine.js\u3084<a href=\"https:\/\/kinsta.com\/jp\/topics\/vue-js\/\">Vue.js<\/a>\u306a\u3069\u306e\u4ed6\u306e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u540c\u69d8\u306b\u3001Interactivity API\u306f\u7279\u5225\u306aHTML\u5c5e\u6027\u3092\u4f7f\u7528\u3057\u3001\u30da\u30fc\u30b8\u4e0a\u306e\u30a4\u30d9\u30f3\u30c8\u3078\u306e\u5fdc\u7b54\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b9\u30c6\u30fc\u30c8\u306e\u66f4\u65b0\u3001DOM\u306e\u64cd\u4f5c\u3001CSS\u30b9\u30bf\u30a4\u30eb\u306e\u9069\u7528\u3001\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u306e\u51e6\u7406\u306a\u3069\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u5c5e\u6027\u306f\u300c<strong>\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6<\/strong>\u300d\u3068\u547c\u3070\u308c\u3001\u30de\u30fc\u30af\u30a2\u30c3\u30d7\u3092\u57fa\u790e\u3068\u306a\u308bJavaScript\u30ed\u30b8\u30c3\u30af\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001\u3088\u304f\u4f7f\u308f\u308c\u308b\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u4e00\u89a7\u3067\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"width: 22.5%\">\u6a5f\u80fd<\/th>\n<th style=\"width: 22.5%\">\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30b7\u30e7\u30f3\/\u540d\u524d\u7a7a\u9593<\/td>\n<td><code>data-wp-interactive<\/code><\/td>\n<td>\u8981\u7d20\u3068\u305d\u306e\u5b50\u8981\u7d20\u306eAPI\u3092\u6709\u52b9\u306b\u3059\u308b\u3002\u5024\u306b\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4e00\u610f\u306a\u8b58\u5225\u5b50\u3092\u8a2d\u5b9a\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30ed\u30fc\u30ab\u30eb\u30b9\u30c6\u30fc\u30c8<\/td>\n<td><code>data-wp-context<\/code><\/td>\n<td>\u73fe\u5728\u306e\u8981\u7d20\u3068\u305d\u306e\u3059\u3079\u3066\u306e\u5b50\u8981\u7d20\u306e\u30ed\u30fc\u30ab\u30eb\u30b9\u30c6\u30fc\u30c8\uff08\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\uff09\u3092\u63d0\u4f9b\u3002JSON\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002PHP\u3067\u3053\u308c\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001<code>wp_interactivity_data_wp_context()<\/code>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u308b\uff08\u901a\u5e38\u306f<code>render.php<\/code>\uff09\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u5c5e\u6027\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0<\/td>\n<td><code>data-wp-bind--[attribute]<\/code><\/td>\n<td>\u30ea\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30b9\u30c6\u30fc\u30c8\u3084\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u5024\uff08boolean\u5024\u3084\u6587\u5b57\u5217\u5024\uff09\u306b\u57fa\u3065\u3044\u3066\u3001HTML\u5c5e\u6027\u3092\u8a2d\u5b9a\uff08<code>disabled<\/code>\u3084<code>value<\/code>\u306a\u3069\uff09\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30c6\u30ad\u30b9\u30c8\u306e\u5909\u66f4<\/td>\n<td><code>data-wp-text<\/code><\/td>\n<td>\u8981\u7d20\u306e\u5185\u5074\u306e\u30c6\u30ad\u30b9\u30c8\u5185\u5bb9\u3092\u8a2d\u5b9a\u3002\u6587\u5b57\u5217\u306e\u307f\u3092\u53d7\u3051\u4ed8\u3051\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>CSS\u30af\u30e9\u30b9\u306e\u5207\u308a\u66ff\u3048<\/td>\n<td><code>data-wp-class--[classname]<\/code><\/td>\n<td>boolean\u5024\u306b\u3088\u3063\u3066CSS\u30af\u30e9\u30b9\u3092\u8ffd\u52a0\u307e\u305f\u306f\u524a\u9664\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30a4\u30f3\u30e9\u30a4\u30f3\u30b9\u30bf\u30a4\u30eb<\/td>\n<td><code>data-wp-style--[css-property]<\/code><\/td>\n<td>boolean\u5024\u306b\u3088\u3063\u3066\u30a4\u30f3\u30e9\u30a4\u30f3\u30b9\u30bf\u30a4\u30eb\u30af\u30e9\u30b9\u3092\u8ffd\u52a0\u307e\u305f\u306f\u524a\u9664\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30a4\u30d9\u30f3\u30c8\u51e6\u7406<\/td>\n<td><code>data-wp-on--[event]<\/code><\/td>\n<td><code>click<\/code>\u3084<code>mouseover<\/code>\u306a\u3069\u306e\u6a19\u6e96DOM\u30a4\u30d9\u30f3\u30c8\u306b\u5fdc\u7b54\u3057\u3066\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u521d\u671f\u5b9f\u884c<\/td>\n<td><code>data-wp-init<\/code><\/td>\n<td>\u30ce\u30fc\u30c9\u306e\u4f5c\u6210\u6642\u306b\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3092\u4e00\u5ea6\u3060\u3051\u5b9f\u884c\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30b9\u30c6\u30fc\u30c8\u76e3\u8996<\/td>\n<td><code>data-wp-watch<\/code><\/td>\n<td>\u30ce\u30fc\u30c9\u306e\u4f5c\u6210\u6642\u306b\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u5b9f\u884c\u3057\u3001\u30b9\u30c6\u30fc\u30c8\u3084\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u304c\u5909\u66f4\u3055\u308c\u308b\u305f\u3073\u306b\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u5b9f\u884c\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30ea\u30b9\u30c8\u306e\u53cd\u5fa9\u51e6\u7406<\/td>\n<td><code>data-wp-each<\/code><\/td>\n<td>\u8981\u7d20\u306e\u30ea\u30b9\u30c8\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u5b8c\u5168\u306a\u30ea\u30b9\u30c8\u306f\u3001<a href=\"https:\/\/make.wordpress.org\/core\/2024\/03\/04\/interactivity-api-dev-note\/\">Interactivity API\u306e\u958b\u767a\u30ce\u30fc\u30c8<\/a>\u3068<a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/interactivity-api\/api-reference\/\">API\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u3001\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3001\u6d3e\u751f\u30b9\u30c6\u30fc\u30c8<\/h2>\n<p>Interactivity API\u3092\u4f7f\u3044\u59cb\u3081\u308b\u306b\u306f\u3001\u307e\u305a\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u306b\u304a\u3051\u308b<a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/interactivity-api\/core-concepts\/undestanding-global-state-local-context-and-derived-state\/\">\u30b9\u30c6\u30fc\u30c8\u7ba1\u7406\u306e\u57fa\u672c\u7684\u306a\u6982\u5ff5<\/a>\u306b\u6163\u308c\u3066\u304a\u304f\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002React\u3001Vue\u3001Angular\u3092\u4f7f\u3063\u3066\u65e5\u5e38\u7684\u306b\u958b\u767a\u3092\u884c\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u3053\u308c\u3089\u306e\u6280\u8853\u3092\u3053\u308c\u304b\u3089\u521d\u3081\u3066\u4f7f\u7528\u3059\u308b\u4eba\u306e\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u3001\u4e00\u822c\u7684\u306a\u5b9a\u7fa9\u3092\u3044\u304f\u3064\u304b\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8<\/h3>\n<p><strong>\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8<\/strong>\u3068\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u307b\u307c\u3059\u3079\u3066\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306a\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001Interactivity API\u306e\u5834\u5408\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u306f\u30da\u30fc\u30b8\u4e0a\u306e\u3059\u3079\u3066\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u306b\u5f71\u97ff\u3057\u3001\u540c\u671f\u3092\u4fdd\u3061\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u5546\u54c1\u3092\u8cb7\u3044\u7269\u30ab\u30b4\u306b\u8ffd\u52a0\u3059\u308b\u3068\u3001\u8cb7\u3044\u7269\u30ab\u30b4\u30d6\u30ed\u30c3\u30af\u306b\u53cd\u6620\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>Interactivity API\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001<code>wp_interactivity_state()<\/code>\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u306e\u521d\u671f\u5024\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u524d\u8ff0\u306e\u30b9\u30bf\u30fc\u30bf\u30fc\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u3053\u306e\u95a2\u6570\u3092<code>render.php<\/code>\u30d5\u30a1\u30a4\u30eb\u3067\u6b21\u306e\u3088\u3046\u306b\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">\/\/ \u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u3092\u8ffd\u52a0\nwp_interactivity_state(\n\t'create-block',\n\tarray(\n\t\t'isDark'    =&gt; false,\n\t\t'darkText'  =&gt; esc_html__( 'Switch to Light', 'your-interactive-block' ),\n\t\t'lightText' =&gt; esc_html__( 'Switch to Dark', 'your-interactive-block' ),\n\t\t'themeText'\t=&gt; esc_html__( 'Switch to Dark', 'your-interactive-block' ),\n\t)\n);<\/code><\/pre>\n<p><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_interactivity_state\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u306e\u95a2\u6570<\/a>\u306f2\u3064\u306e\u5f15\u6570\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30b9\u30c8\u30a2\u540d\u524d\u7a7a\u9593\u306e\u4e00\u610f\u306a\u8b58\u5225\u5b50\uff08\u3053\u306e\u5834\u5408\u306f<code>create-block<\/code>\uff09<\/li>\n<li>\u65e2\u5b58\u306e\u30b9\u30c8\u30a2\u540d\u524d\u7a7a\u9593\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u3001\u305d\u306e\u540d\u524d\u7a7a\u9593\u3068\u30de\u30fc\u30b8\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306e\u914d\u5217<\/li>\n<\/ul>\n<p>\u305d\u306e\u5f8c\u3001\u521d\u671f\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u5024\u304c\u30da\u30fc\u30b8\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306b\u3001\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u5c5e\u6027\u5024\u306b<code>state<\/code>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u306e\u5024\u306b\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;button\n\tdata-wp-on--click=\"actions.toggleTheme\"\n\tdata-wp-text=\"state.themeText\"\n&gt;&lt;\/button&gt;<\/code><\/pre>\n<p><code>store()<\/code>\u306f\u3001\u9078\u629e\u3057\u305f\u540d\u524d\u7a7a\u9593\u306b\u9650\u5b9a\u3057\u3066\u3001JavaScript\u304b\u3089\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u3078\u306e\u4e3b\u306a\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u30b9\u30bf\u30fc\u30bf\u30fc\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001<code>store()<\/code>\u306f<code>view.js<\/code>\u30d5\u30a1\u30a4\u30eb\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-javascript\">import { store, getContext } from '@wordpress\/interactivity';\n\nconst { state } = store( 'create-block', {\n\tstate: { ... },\n\tactions: { ... },\n\tcallbacks: { ... },\n} );<\/code><\/pre>\n<p>\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u3001<code>state<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-javascript\">actions: {\n\ttoggleTheme() {\n\t\tstate.isDark = ! state.isDark;\n\t},\n},<\/code><\/pre>\n<h3>\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8<\/h3>\n<p><strong>\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8<\/strong>\u3068\u306f\u3001\u7279\u5b9a\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u305d\u306e\u76f4\u63a5\u306e\u5b50\u304b\u3089\u306e\u307f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u30c7\u30fc\u30bf\u3067\u3059\u3002WordPress\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u306f\u3001\u30d6\u30ed\u30c3\u30af\u3068\u305d\u306e\u30cd\u30b9\u30c8\u3057\u305f\u8981\u7d20\u306b\u72ec\u7acb\u3057\u305f\u72b6\u614b\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<p>Interactivity API\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001<code>getContext()<\/code>\u3092\u4f7f\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002\u30b9\u30bf\u30fc\u30bf\u30fc\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5834\u5408\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u300cToggle\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001<code>toggleOpen()<\/code>\u30a2\u30af\u30b7\u30e7\u30f3\u304c\u30c8\u30ea\u30ac\u30fc\u3055\u308c\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-javascript\">actions: {\n\ttoggleOpen() {\n\t\tconst context = getContext();\n\t\tcontext.isOpen = ! context.isOpen;\n\t},\n},<\/code><\/pre>\n<ul>\n<li><code>getContext()<\/code>\uff1a\u30d6\u30ed\u30c3\u30af\u306e\u30ed\u30fc\u30ab\u30eb\u30b9\u30c6\u30fc\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3002\u3053\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001<code>wp_interactivity_data_wp_context()<\/code>\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30de\u30fc\u30af\u30a2\u30c3\u30d7\uff08<code>render.php<\/code>\uff09\u3067\u5b9a\u7fa9\u3055\u308c\u308b\u3002<\/li>\n<li><code>context.isOpen = ! context.isOpen;<\/code>\uff1a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e<code>isOpen<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u3092\u5207\u308a\u66ff\u3048\u308b\u3002<\/li>\n<\/ul>\n<h3>\u6d3e\u751f\u30b9\u30c6\u30fc\u30c8<\/h3>\n<p><strong>\u6d3e\u751f\u30b9\u30c6\u30fc\u30c8<\/strong>\u3068\u306f\u3001\u65e2\u5b58\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u307e\u305f\u306f\u30ed\u30fc\u30ab\u30eb\u30b9\u30c6\u30fc\u30c8\u304b\u3089\u52d5\u7684\u306b\u8a08\u7b97\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3001<code>view.js<\/code>\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30fc\u30c9\u4f8b\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-javascript\">const { state } = store( 'create-block', {\n\tstate: {\n\t\tget themeText() {\n\t\t\treturn state.isDark ? state.darkText : state.lightText;\n\t\t},\n\t},\n\t...\n}<\/code><\/pre>\n<p>\u3053\u306e\u30d6\u30ed\u30c3\u30af\u306f\u3001<code>create-block<\/code>\u540d\u524d\u7a7a\u9593\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u5185\u306e<code>themeText<\/code>\u6d3e\u751f\u30b9\u30c6\u30fc\u30c8\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><code>get themeText()<\/code>\u306f\u56fa\u5b9a\u5024\u3067\u306f\u306a\u304f\u3001<code>themeText<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8aad\u3082\u3046\u3068\u3059\u308b\u305f\u3073\u306b\u5b9f\u884c\u3055\u308c\u308b\u95a2\u6570\u3002Interactivity API\u306f\u3053\u308c\u3092\u30b9\u30c6\u30fc\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u3057\u3066\u6271\u3044\u3001\u4ed6\u306e\u30b9\u30c6\u30fc\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u304c\u5909\u66f4\u3055\u308c\u308b\u305f\u3073\u306b\u305d\u306e\u5024\u3092\u81ea\u52d5\u7684\u306b\u518d\u8a08\u7b97\u3059\u308b\u305f\u3081\u3001\u901a\u5e38\u306e\u95a2\u6570\u306e\u3088\u3046\u306b\u547c\u3073\u51fa\u3059\u3053\u3068\u306f\u63a8\u5968\u3055\u308c\u306a\u3044\u3002\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001<code>isDark<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u304c\u5909\u66f4\u3055\u308c\u308b\u305f\u3073\u3001<code>themeText<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u304c\u518d\u8a08\u7b97\u3055\u308c\u308b\u3002<code>state.isDark<\/code> \u304c<code>true<\/code>\u306e\u5834\u5408\u3001<code>themeText<\/code>\u306f<code>state.darkText<\/code>\u306e\u5024\u3092\u53d6\u308a\u3001\u305d\u3046\u3067\u306a\u3044\u5834\u5408\u306f<code>state.lightText<\/code>\u306e\u5024\u3092\u53d6\u308b\u3002<\/li>\n<\/ul>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u3054\u8aac\u660e\u3057\u305f\u6982\u5ff5\u306e<a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/interactivity-api\/core-concepts\/undestanding-global-state-local-context-and-derived-state\/\">\u3088\u308a\u5305\u62ec\u7684\u306a\u6982\u8981\u306f\u3053\u3061\u3089<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30a2\u30af\u30b7\u30e7\u30f3\u3068\u30b3\u30fc\u30eb\u30d0\u30c3\u30af<\/h2>\n<p>\u30a2\u30af\u30b7\u30e7\u30f3\u3068\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u3068\u306e\u5bfe\u8a71\u3084\u30b9\u30c6\u30fc\u30c8\u306e\u5909\u5316\u306b\u5bfe\u3059\u308b\u5fdc\u7b54\u3092\u6c7a\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u306e<code>actions<\/code>\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u751f\u6210\u3057\u305f\u30a4\u30d9\u30f3\u30c8\u306b\u5fdc\u7b54\u3057\u3066\u5b9f\u884c\u3055\u308c\u308b\u95a2\u6570\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u95a2\u6570\u306f\u3001\u4e3b\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30ed\u30fc\u30ab\u30eb\u307e\u305f\u306f\u30b0\u30ed\u30fc\u30d0\u30eb\u306e\u30b9\u30c6\u30fc\u30c8\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001<code>view.js<\/code>\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u30b3\u30fc\u30c9\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-javascript\">actions: {\n\ttoggleOpen() {\n\t\tconst context = getContext();\n\t\tcontext.isOpen = ! context.isOpen;\n\t},\n\t...\n},<\/code><\/pre>\n<ul>\n<li>\u3053\u306e\u30b3\u30fc\u30c9\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001<code>toggleOpen()<\/code>\u304c<code>getContext()<\/code>\u3092\u4f7f\u3063\u3066\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u30c8\u30ea\u30ac\u30fc\u3057\u305f\u30d6\u30ed\u30c3\u30af\u306e\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001<code>isOpen<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u3092\u5207\u308a\u66ff\u3048\u3066\u3044\u308b\u3002<\/li>\n<\/ul>\n<p>\u540c\u69d8\u306b\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u306b\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-javascript\">actions: {\n\t...,\n\ttoggleTheme() {\n\t\tstate.isDark = ! state.isDark;\n\t},\n},<\/code><\/pre>\n<ul>\n<li><code>toggleTheme()<\/code>\u306f\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u306a<code>state<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3057\u3001<code>isDark<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u3092\u5909\u66f4\u3002<\/li>\n<\/ul>\n<p>\u30a2\u30af\u30b7\u30e7\u30f3\u306f<code>data-wp-on--[event]<\/code>\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4ecb\u3057\u3066\u30c8\u30ea\u30ac\u30fc\u3055\u308c\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001<code>render.php<\/code>\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u306e\u30dc\u30bf\u30f3\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;button\n\tdata-wp-on--click=\"actions.toggleOpen\"\n\tdata-wp-bind--aria-expanded=\"context.isOpen\"\n\taria-controls=\"&lt;?php echo esc_attr( $unique_id ); ?&gt;\"\n&gt;<\/code><\/pre>\n<ul>\n<li>\u3053\u306eHTML\u30b3\u30fc\u30c9\u3067\u306f\u3001<code>data-wp-on--click<\/code>\u5c5e\u6027\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u300cToggle\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001<code>toggleOpen<\/code>\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u6709\u52b9\u306b\u3059\u308b\u3002<\/li>\n<\/ul>\n<p><code>callbacks<\/code>\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u306f\u3001\u4f9d\u5b58\u3059\u308b\u30c7\u30fc\u30bf\u304c\u5909\u66f4\u3055\u308c\u308b\u3068\u81ea\u52d5\u7684\u306b\u5b9f\u884c\u3055\u308c\u308b\u95a2\u6570\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u95a2\u6570\u306f\u3001\u30b9\u30c6\u30fc\u30c8\u306e\u5909\u5316\u306b\u5fdc\u7b54\u3057\u3066\u526f\u4f5c\u7528\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u76ee\u7684\u3067\u3059\u3002<\/p>\n<p><code>create-block-interactive-template<\/code>\u306b\u3088\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-javascript\">callbacks: {\n\tlogIsOpen: () =&gt; {\n\t\tconst { isOpen } = getContext();\n\t\t\/\/ isOpen \u304c\u5909\u66f4\u3055\u308c\u308b\u305f\u3073\u306b\u305d\u306e\u5024\u3092\u30ed\u30b0\u306b\u51fa\u529b\n\t\tconsole.log( `Is open: ${ isOpen }` );\n\t},\n},<\/code><\/pre>\n<ul>\n<li><code>logIsOpen<\/code>\u95a2\u6570\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u4f7f\u7528\u53ef\u80fd\u306a\u5909\u6570<code>isOpen<\/code>\u3092\u4f7f\u7528\u3059\u308b\u3002<\/li>\n<li>\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306f<code>getContext()<\/code>\u3092\u4f7f\u7528\u3057\u3066<code>isOpen<\/code>\u306e\u5024\u3092\u53d6\u5f97\u3002<\/li>\n<li><code>isOpen<\/code>\u306e\u5024\u304c\u5909\u308f\u308b\u305f\u3073\u306b\u3001\u95a2\u6570\u306f\u30d6\u30e9\u30a6\u30b6\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6295\u3052\u308b\u3002<\/li>\n<\/ul>\n<figure id=\"attachment_199639\" aria-describedby=\"caption-attachment-199639\" style=\"width: 1596px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-199639 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2025\/10\/toggle-is-open.png\" alt=\"\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u5909\u66f4\u3092\u30e6\u30fc\u30b6\u30fc\u306b\u901a\u77e5\" width=\"1596\" height=\"727\"><figcaption id=\"caption-attachment-199639\" class=\"wp-caption-text\">\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u5909\u66f4\u3092\u30e6\u30fc\u30b6\u30fc\u306b\u901a\u77e5<\/figcaption><\/figure>\n<h2>\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u306e\u4f5c\u308a\u65b9<\/h2>\n<p>\u7406\u8ad6\u7684\u306a\u90e8\u5206\u3092\u62bc\u3055\u3048\u305f\u3089\u3001\u6b21\u306f\u5b9f\u8df5\u3002\u3053\u3053\u304b\u3089\u306f\u30e6\u30fc\u30b6\u30fc\u304c\u8cb7\u3044\u7269\u30ab\u30b4\u306b\u5546\u54c1\u3092\u8ffd\u52a0\u3057\u3001\u6570\u91cf\u3068\u5408\u8a08\u304c\u81ea\u52d5\u7684\u306b\u66f4\u65b0\u3055\u308c\u308b\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30d6\u30ed\u30c3\u30af\u306e\u4f5c\u308a\u65b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3053\u306e\u4f8b\u3092\u901a\u3057\u3066\u3001\u30b9\u30c6\u30fc\u30c8\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u4f7f\u3044\u65b9\u3092\u3088\u308a\u660e\u78ba\u306b\u7406\u89e3\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<figure id=\"attachment_199768\" aria-describedby=\"caption-attachment-199768\" style=\"width: 1512px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-199768 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2025\/10\/interactive-counter-editor-view.png\" alt=\"\u30a8\u30c7\u30a3\u30bf\u30fc\u5185\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\" width=\"1512\" height=\"1204\"><figcaption id=\"caption-attachment-199768\" class=\"wp-caption-text\">\u30a8\u30c7\u30a3\u30bf\u30fc\u5185\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af<\/figcaption><\/figure>\n<p><code>create-block-interactive-template<\/code>\u3092\u4f7f\u3063\u3066\u3001\u300c<strong>Interactive Counter<\/strong>\u300d\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u308a\u307e\u3059\u3002\u307e\u305a\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3092\u958b\u3044\u3066\u3001\u4ee5\u4e0b\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">npx @wordpress\/create-block interactive-counter --template @wordpress\/create-block-interactive-template<\/code><\/pre>\n<p>\u6b21\u306b\u3001\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3001\u6700\u521d\u306e\u30d3\u30eb\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">cd interactive-counter && npm run build<\/code><\/pre>\n<p>\u30b3\u30fc\u30c9\u30a8\u30c7\u30a3\u30bf\u30fc\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u958b\u304d\u3001<code>\/src<\/code>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067<code>block.json<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u3064\u3051\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-json\">{\n\t\"$schema\": \"https:\/\/schemas.wp.org\/trunk\/block.json\",\n\t\"apiVersion\": 3,\n\t\"name\": \"create-block\/interactive-counter\",\n\t\"version\": \"0.1.0\",\n\t\"title\": \"Interactive Counter\",\n\t\"category\": \"widgets\",\n\t\"icon\": \"media-interactive\",\n\t\"description\": \"An interactive block with the Interactivity API.\",\n\t\"supports\": {\n\t\t\"interactivity\": true\n\t},\n\t\"textdomain\": \"interactive-counter\",\n\t\"editorScript\": \"file:.\/index.js\",\n\t\"editorStyle\": \"file:.\/index.css\",\n\t\"style\": \"file:.\/style-index.css\",\n\t\"render\": \"file:.\/render.php\",\n\t\"viewScriptModule\": \"file:.\/view.js\"\n}<\/code><\/pre>\n<p>\u3053\u308c\u306f\u81ea\u7531\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u53ef\u80fd\u3067\u3059\u304c\u3001\u4e0a\u8a18\u306e\u5fc5\u9808\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u306f\u5909\u66f4\u3092\u52a0\u3048\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>edit.js\u30d5\u30a1\u30a4\u30eb<\/h3>\n<p>\u6b21\u306b\u3001\u30a8\u30c7\u30a3\u30bf\u30fc\u306b\u8868\u793a\u3055\u308c\u308b\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u306f\u3001<code>\/src\/edit.js<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code class=\"language-javascript\">import { __ } from '@wordpress\/i18n';\nimport { useBlockProps } from '@wordpress\/block-editor';\nimport '.\/editor.scss';\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst blockProps = useBlockProps();\n\tconst products = [\n\t\t{ id: 'product1', name: __('Product 1', 'interactive-counter'), price: 10.00 },\n\t\t{ id: 'product2', name: __('Product 2', 'interactive-counter'), price: 15.00 },\n\t\t{ id: 'product3', name: __('Product 3', 'interactive-counter'), price: 20.00 },\n\t];\n\n\treturn (\n\t\t&lt;div {...blockProps}&gt;\n\t\t\t&lt;h3&gt;{__('Shopping Cart', 'interactive-counter')}&lt;\/h3&gt;\n\t\t\t&lt;ul&gt;\n\t\t\t\t{products.map((product) =&gt; (\n\t\t\t\t\t&lt;li key={product.id} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: '10px' }}&gt;\n\t\t\t\t\t\t&lt;span style={{ flex: 1 }}&gt;{product.name} - ${product.price.toFixed(2)}&lt;\/span&gt;\n\t\t\t\t\t\t&lt;div style={{ display: 'flex', gap: '10px', alignItems: 'center' }}&gt;\n\t\t\t\t\t\t\t&lt;button disabled&gt;-&lt;\/button&gt;\n\t\t\t\t\t\t\t&lt;span&gt;0&lt;\/span&gt;\n\t\t\t\t\t\t\t&lt;button disabled&gt;+&lt;\/button&gt;\n\t\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t\t&lt;span style={{ flex: 1, textAlign: 'right' }}&gt;\n\t\t\t\t\t\t\t{__('Subtotal:', 'interactive-counter')} $0.00\n\t\t\t\t\t\t&lt;\/span&gt;\n\t\t\t\t\t&lt;\/li&gt;\n\t\t\t\t))}\n\t\t\t&lt;\/ul&gt;\n\t\t\t&lt;div style={{ borderTop: '1px solid #ccc', paddingTop: '15px' }}&gt;\n\t\t\t\t&lt;p style={{ display: 'flex', justifyContent: 'space-between' }}&gt;\n\t\t\t\t\t&lt;strong&gt;{__('Subtotal:', 'interactive-counter')}&lt;\/strong&gt;\n\t\t\t\t\t&lt;span&gt;$0.00&lt;\/span&gt;\n\t\t\t\t&lt;\/p&gt;\n\t\t\t\t&lt;p style={{ display: 'flex', justifyContent: 'space-between' }}&gt;\n\t\t\t\t\t&lt;strong&gt;{__('Tax (22%):', 'interactive-counter')}&lt;\/strong&gt;\n\t\t\t\t\t&lt;span&gt;$0.00&lt;\/span&gt;\n\t\t\t\t&lt;\/p&gt;\n\t\t\t\t&lt;p style={{ display: 'flex', justifyContent: 'space-between' }}&gt;\n\t\t\t\t\t&lt;strong&gt;{__('Total:', 'interactive-counter')}&lt;\/strong&gt;\n\t\t\t\t\t&lt;span&gt;$0.00&lt;\/span&gt;\n\t\t\t\t&lt;\/p&gt;\n\t\t\t&lt;\/div&gt;\n\t\t\t&lt;p&gt;{__('\u6570\u91cf\u3068\u5408\u8a08\u306f\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3067\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306b', 'interactive-counter')}&lt;\/p&gt;\n\t\t&lt;\/div&gt;\n\t);\n}<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306b\u30ab\u30b9\u30bf\u30e0\u30d6\u30ed\u30c3\u30af\u3092\u751f\u6210\u3057\u3001\u3053\u306e\u30d6\u30ed\u30c3\u30af\u306f\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3067\u306e\u307f\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306b\u52d5\u4f5c\u3057\u307e\u3059\u3002<code>\/src\/edit.js<\/code>\u30d5\u30a1\u30a4\u30eb\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001Gutenberg<a href=\"https:\/\/kinsta.com\/jp\/blog\/gutenberg-blocks\/\">\u30d6\u30ed\u30c3\u30af\u958b\u767a\u306e\u89e3\u8aac\u8a18\u4e8b<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>render.php\u30d5\u30a1\u30a4\u30eb<\/h3>\n<p>\u6b21\u306b<code>\/src\/render.php<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001\u65e2\u5b58\u306e\u30b3\u30fc\u30c9\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">&lt;?php\n\/**\n * Render callback for the interactive-counter block.\n *\/\n\n$products = [\n\t['id' =&gt; 'product1', 'name' =&gt; __('Product 1', 'interactive-counter'), 'price' =&gt; 10.00],\n\t['id' =&gt; 'product2', 'name' =&gt; __('Product 2', 'interactive-counter'), 'price' =&gt; 15.00],\n\t['id' =&gt; 'product3', 'name' =&gt; __('Product 3', 'interactive-counter'), 'price' =&gt; 20.00],\n];\n\n\/\/ Initialize global state\nwp_interactivity_state('interactive-counter', [\n\t'products' =&gt; array_map(function ($product) {\n\t\treturn [\n\t\t\t'id' =&gt; $product['id'],\n\t\t\t'name' =&gt; $product['name'],\n\t\t\t'price' =&gt; $product['price'],\n\t\t\t'quantity' =&gt; 0,\n\t\t\t'subtotal' =&gt; '0.00',\n\t\t];\n\t}, $products),\n\t'vatRate' =&gt; 0.22,\n]);<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30cf\u30fc\u30c9\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3055\u308c\u305f\u5546\u54c1\u306e\u914d\u5217\u3092\u4f5c\u6210\u3002\u5404\u5546\u54c1\u306fID\u3001\u5546\u54c1\u540d\u3001\u4fa1\u683c\u3092\u6301\u3064\u3002<\/li>\n<li>\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u3092<code>wp_interactivity_state<\/code>\u3067\u521d\u671f\u5316\u3002\u6700\u521d\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u30b9\u30c8\u30a2\u540d\u3067\u3001<code>view.js<\/code>\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3068\u4e00\u81f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/li>\n<li>\u4ee5\u524d\u306e\u5546\u54c1\u306e\u914d\u5217\u3092<code>products<\/code>\u914d\u5217\u306b\u30de\u30c3\u30d7\u3057\u3001\u5143\u306e\u914d\u5217\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u6570\u91cf\u3068\u5c0f\u8a08\u3092\u8ffd\u52a0\u3002\u3053\u306e\u65b0\u3057\u3044\u914d\u5217\u306f\u3001<code>view.js<\/code>\u3067\u4f7f\u7528\u3059\u308b\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u63d0\u4f9b\u3059\u308b\u3002<\/li>\n<li><code>vatRate<\/code>\u3067\u7a0e\u91d1\u8a08\u7b97\u306e\u65e2\u5b9a\u5024\u3092\u8a2d\u5b9a\u3002<\/li>\n<\/ol>\n<p>\u6b21\u306b\u3001\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;div &lt;?php echo get_block_wrapper_attributes(); ?&gt; data-wp-interactive=\"interactive-counter\" data-wp-init=\"callbacks.init\"&gt;\n\t&lt;h3&gt;&lt;?php echo esc_html__('Cart', 'interactive-counter'); ?&gt;&lt;\/h3&gt;\n\t&lt;ul&gt;\n\t\t&lt;?php foreach ($products as $index =&gt; $product) : ?&gt;\n\t\t\t&lt;li data-wp-context='{\n\t\t\t\t\"productId\": \"&lt;?php echo esc_attr($product['id']); ?&gt;\",\n\t\t\t\t\"quantity\": 0,\n\t\t\t\t\"subtotal\": \"0.00\"\n\t\t\t}' \n\t\t\tdata-wp-bind--data-wp-context.quantity=\"state.products[&lt;?php echo $index; ?&gt;].quantity\" \n\t\t\tdata-wp-bind--data-wp-context.subtotal=\"state.products[&lt;?php echo $index; ?&gt;].subtotal\"&gt;\n\t\t\t\t&lt;span class=\"product-name\"&gt;&lt;?php echo esc_html($product['name']); ?&gt; - $&lt;?php echo esc_html(number_format($product['price'], 2)); ?&gt;&lt;\/span&gt;\n\t\t\t\t&lt;div class=\"quantity-controls\"&gt;\n\t\t\t\t\t&lt;button data-wp-on--click=\"actions.decrement\"&gt;-&lt;\/button&gt;\n\t\t\t\t\t&lt;span data-wp-text=\"context.quantity\"&gt;0&lt;\/span&gt;\n\t\t\t\t\t&lt;button data-wp-on--click=\"actions.increment\"&gt;+&lt;\/button&gt;\n\t\t\t\t&lt;\/div&gt;\n\t\t\t\t&lt;span class=\"product-subtotal\"&gt;\n\t\t\t\t\t&lt;?php echo esc_html__('Subtotal:', 'interactive-counter'); ?&gt;\n\t\t\t\t\t$&lt;span data-wp-text=\"context.subtotal\"&gt;0.00&lt;\/span&gt;\n\t\t\t\t&lt;\/span&gt;\n\t\t\t&lt;\/li&gt;\n\t\t&lt;?php endforeach; ?&gt;\n\t&lt;\/ul&gt;\n\t&lt;div class=\"totals\"&gt;\n\t\t&lt;p&gt;\n\t\t\t&lt;strong&gt;&lt;?php echo esc_html__('Subtotal:', 'interactive-counter'); ?&gt;&lt;\/strong&gt;\n\t\t\t$ &lt;span data-wp-text=\"state.subtotal\"&gt;0.00&lt;\/span&gt;\n\t\t&lt;\/p&gt;\n\t\t&lt;p&gt;\n\t\t\t&lt;strong&gt;&lt;?php echo esc_html__('Tax (22%):', 'interactive-counter'); ?&gt;&lt;\/strong&gt;\n\t\t\t$ &lt;span data-wp-text=\"state.vat\"&gt;0.00&lt;\/span&gt;\n\t\t&lt;\/p&gt;\n\t\t&lt;p&gt;\n\t\t\t&lt;strong&gt;&lt;?php echo esc_html__('Total:', 'interactive-counter'); ?&gt;&lt;\/strong&gt;\n\t\t\t$ &lt;span data-wp-text=\"state.total\"&gt;0.00&lt;\/span&gt;\n\t\t&lt;\/p&gt;\n\t&lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><code>div<\/code>\u30b3\u30f3\u30c6\u30ca\u5185\u306e<code>get_block_wrapper_attributes()<\/code>\u306f\u3001\u30d6\u30ed\u30c3\u30af\u306e\u6a19\u6e96\u5c5e\u6027\u3092\u751f\u6210\u3059\u308bWordPress\u95a2\u6570\u3002\u3053\u306e\u5834\u5408\u306f\u3001<code>\"wp-block-create-block-interactive-counter\"<\/code>\u30af\u30e9\u30b9\u5c5e\u6027\u3092\u751f\u6210\u3002<\/li>\n<li><code>data-wp-interactive<\/code>\u5c5e\u6027\u3067\u3053\u306e\u30d6\u30ed\u30c3\u30af\u3092\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\u3002<\/li>\n<li><code>data-wp-init<\/code>\u5c5e\u6027\u3067<code>view.js<\/code>\u3067\u5b9a\u7fa9\u3055\u308c\u305f<code>init<\/code>\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u30c8\u30ea\u30ac\u30fc\u3059\u308b\u3002<\/li>\n<li><code>foreach<\/code>\u30eb\u30fc\u30d7\u3067\u3001<code>products<\/code>\u914d\u5217\u5185\u306e\u5404\u5546\u54c1\u306b\u5bfe\u3057\u3066\u30ea\u30b9\u30c8\u9805\u76ee\u3092\u751f\u6210\u3002<\/li>\n<li><code>data-wp-context<\/code>\u30d6\u30ed\u30c3\u30af\u306e\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u5b9a\u7fa9\u3002<\/li>\n<li>\n<p data-start=\"46\" data-end=\"158\"><code data-start=\"46\" data-end=\"60\">data-wp-bind<\/code>\u3067<code data-start=\"63\" data-end=\"89\">data-wp-context.quantity<\/code>\u306e\u5024\u3092\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u306e<code data-start=\"110\" data-end=\"137\">products[$index].quantity<\/code> \u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u7d50\u3073\u3064\u3051\u308b\u3002<\/p>\n<\/li>\n<li>\u540c\u69d8\u306e\u3053\u3068\u304c\u4ee5\u4e0b\u306e\u5c0f\u8a08\u306e\u884c\u3067\u3082\u5b9f\u884c\u3055\u308c\u308b\u3002<\/li>\n<li>\u6b21\u306e2\u3064\u306e\u30dc\u30bf\u30f3\u306f<code>data-wp-on--click<\/code>\u5c5e\u6027\u306b\u3088\u308a\u3001<code>decrement<\/code>\u3068<code>increment<\/code>\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u6709\u52b9\u5316\u3002<\/li>\n<li><code>span<\/code>\u306e<code>data-wp-text<\/code>\u5c5e\u6027\u306f\u3001<code>context.quantity<\/code>\u306e\u73fe\u5728\u306e\u5024\u306b\u57fa\u3065\u3044\u3066\u8981\u7d20\u306e\u5185\u5bb9\u3092\u66f4\u65b0\u3002<\/li>\n<\/ul>\n<p>\u6b8b\u308a\u306e\u30b3\u30fc\u30c9\u306f\u8aac\u660e\u3059\u308b\u307e\u3067\u3082\u306a\u3044\u305f\u3081\u3001\u6b21\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u9032\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>view.js\u30d5\u30a1\u30a4\u30eb<\/h3>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u306e\u30ed\u30b8\u30c3\u30af\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-javascript\">import { store, getContext } from '@wordpress\/interactivity';\n\nstore('interactive-counter', {\n\tstate: {\n\t\tget subtotal() {\n\t\t\tconst { products } = store('interactive-counter').state;\n\t\t\treturn products\n\t\t\t\t.reduce((sum, product) =&gt; sum + product.price * (product.quantity || 0), 0)\n\t\t\t\t.toFixed(2);\n\t\t},\n\t\tget vat() {\n\t\t\tconst { subtotal, vatRate } = store('interactive-counter').state;\n\t\t\treturn (subtotal * vatRate).toFixed(2);\n\t\t},\n\t\tget total() {\n\t\t\tconst { subtotal, vat } = store('interactive-counter').state;\n\t\t\treturn (parseFloat(subtotal) + parseFloat(vat)).toFixed(2);\n\t\t},\n\t},\n\tactions: {\n\t\tincrement: () =&gt; {\n\t\t\tconst context = getContext();\n\t\t\tconst { products } = store('interactive-counter').state;\n\t\t\tconst product = products.find(p =&gt; p.id === context.productId);\n\t\t\tif (product) {\n\t\t\t\tproduct.quantity = (product.quantity || 0) + 1;\n\t\t\t\tproduct.subtotal = (product.price * product.quantity).toFixed(2);\n\t\t\t\tcontext.quantity = product.quantity;\n\t\t\t\tcontext.subtotal = product.subtotal;\n\t\t\t\tconsole.log(`Incremented ${context.productId}:`, { quantity: product.quantity, subtotal: product.subtotal, context });\n\t\t\t} else {\n\t\t\t\tconsole.warn('Product not found:', context.productId);\n\t\t\t}\n\t\t},\n\t\tdecrement: () =&gt; {\n\t\t\tconst context = getContext();\n\t\t\tconst { products } = store('interactive-counter').state;\n\t\t\tconst product = products.find(p =&gt; p.id === context.productId);\n\t\t\tif (product && (product.quantity || 0) &gt; 0) {\n\t\t\t\tproduct.quantity -= 1;\n\t\t\t\tproduct.subtotal = (product.price * product.quantity).toFixed(2);\n\t\t\t\tcontext.quantity = product.quantity;\n\t\t\t\tcontext.subtotal = product.subtotal;\n\t\t\t\tconsole.log(`Decremented ${context.productId}:`, { quantity: product.quantity, subtotal: product.subtotal, context });\n\t\t\t} else {\n\t\t\t\tconsole.warn('Cannot decrement:', context.productId, product?.quantity);\n\t\t\t}\n\t\t},\n\t},\n\tcallbacks: {\n\t\tinit: () =&gt; {\n\t\t\tconst { products } = store('interactive-counter').state;\n\t\t\tproducts.forEach((product, index) =&gt; {\n\t\t\t\tproduct.quantity = 0;\n\t\t\t\tproduct.subtotal = '0.00';\n\t\t\t\tconsole.log(`Initialized product ${index}:`, { id: product.id, quantity: product.quantity, subtotal: product.subtotal });\n\t\t\t});\n\t\t},\n\t},\n});<\/code><\/pre>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001<code>interactive-counter<\/code>\u540d\u524d\u7a7a\u9593\u306e\u30b9\u30c8\u30a2\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u3067\u30b9\u30c6\u30fc\u30c8\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u7ba1\u7406\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-javascript\">store('interactive-counter', {\n\tstate: { ... },\n\tactions: { ... },\n\tcallbacks: { ... },\n});<\/code><\/pre>\n<ul>\n<li><code>state<\/code>\uff1a<code>subtotal<\/code>\u3001<code>vat<\/code>\u3001\u304a\u3088\u3073<code>total<\/code>\u306e3\u3064\u306e\u8a08\u7b97\u72b6\u614b\u30d7\u30ed\u30d1\u30c6\u30a3\uff08\u30b2\u30c3\u30bf\u30fc\uff09\u3092\u5b9a\u7fa9\u3002\u3053\u308c\u3089\u306e\u95a2\u6570\u306f\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u304b\u3089\u5024\u3092\u53d6\u5f97\u3057\u3001\u8fd4\u3055\u308c\u308b\u5024\u3092\u8a08\u7b97\u3059\u308b\u3002<\/li>\n<li><code>actions<\/code>\uff1a\u30a4\u30d9\u30f3\u30c8\u6642\u306b\u5b9f\u884c\u3055\u308c\u308b2\u3064\u306e\u95a2\u6570\u3001<code>increment<\/code>\u304a\u3088\u3073<code>decrement<\/code>\u3092\u5b9a\u7fa9\u3002\u3053\u308c\u3089\u306e\u95a2\u6570\u306f\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u304b\u3089<code>products<\/code>\u914d\u5217\u3092\u53d6\u5f97\u3057\u3001<code>context.productId<\/code>\u306b\u57fa\u3065\u3044\u3066\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u304b\u3089\u73fe\u5728\u306e\u5546\u54c1\u3092\u53d6\u5f97\u3057\u3001\u73fe\u5728\u306e\u5546\u54c1\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u5024\uff08<code>quantity<\/code>\u3068<code>subtotal<\/code>\uff09\u3092\u66f4\u65b0\u3057\u3001\u65b0\u3057\u3044\u5024\u3067\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u540c\u671f\u3059\u308b\u3002<\/li>\n<li><code>callbacks<\/code>\uff1a\u521d\u671f\u5316\u306e\u305f\u3081\u306e<code>init<\/code>\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u5b9a\u7fa9\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u306f\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u306e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3067\u306e\u898b\u3048\u65b9\u3067\u3059\u3002<\/p>\n<figure id=\"attachment_199769\" aria-describedby=\"caption-attachment-199769\" style=\"width: 1364px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-199769 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2025\/10\/interactive-counter.png\" alt=\"Interactivity API\u3067\u4f5c\u6210\u3057\u305f\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30ab\u30a6\u30f3\u30bf\u30fc\" width=\"1364\" height=\"896\"><figcaption id=\"caption-attachment-199769\" class=\"wp-caption-text\">Interactivity API\u3067\u4f5c\u6210\u3057\u305f\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30ab\u30a6\u30f3\u30bf\u30fc<\/figcaption><\/figure>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306f\u3001WordPress\u306eInteractivity API\u306e\u4e3b\u306a\u6a5f\u80fd\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c6\u30fc\u30c8\u3001\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3001\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306a\u3069\u306e\u4e3b\u8981\u306a\u6982\u5ff5\u3092\u6398\u308a\u4e0b\u3052\u3001<code>@wordpress\/create-block-interactive-template<\/code>\u3092\u4f7f\u3063\u3066\u30bc\u30ed\u304b\u3089\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u5165\u529b\u3068\u9023\u52d5\u3059\u308b\u30d6\u30ed\u30c3\u30af\u3092\u5b9f\u969b\u306b\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>WordPress Interactivity API\u3092\u4f7f\u3063\u3066\u3001\u52d5\u7684\u3067\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306aWordPress\u30b5\u30a4\u30c8\u958b\u767a\u306e\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5e78\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u308c\u307e\u3067\u3053\u306e\u30d6\u30ed\u30b0\u306e\u6295\u7a3f\u3067\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u89d2\u5ea6\u304b\u3089 W &#8230;<\/p>\n","protected":false},"author":36,"featured_media":66977,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[],"topic":[751,826],"class_list":["post-66976","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","topic-api","topic-wordpress-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Interactivity API\u3068\u306f\uff1f\u6700\u65b0WordPress\u30d6\u30ed\u30c3\u30af\u958b\u767a\u306b\u4fbf\u5229<\/title>\n<meta name=\"description\" content=\"Interactivity API\u306f\u3001\u6b21\u4e16\u4ee3\u306eWordPress\u30b5\u30a4\u30c8\u3092\u69cb\u7bc9\u3067\u304d\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u306b\u306a\u308a\u307e\u3059\u3002\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u958b\u767a\u3092\u5305\u62ec\u7684\u306b\u53d6\u308a\u4e0a\u3052\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Interactivity API\u3068\u306f\uff1f\u6700\u65b0WordPress\u30d6\u30ed\u30c3\u30af\u958b\u767a\u306b\u4fbf\u5229\" \/>\n<meta property=\"og:description\" content=\"Interactivity API\u306f\u3001\u6b21\u4e16\u4ee3\u306eWordPress\u30b5\u30a4\u30c8\u3092\u69cb\u7bc9\u3067\u304d\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u306b\u306a\u308a\u307e\u3059\u3002\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u958b\u767a\u3092\u5305\u62ec\u7684\u306b\u53d6\u308a\u4e0a\u3052\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-06T07:51:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-25T12:31:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/how-to-create-interactive-blocks.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1470\" \/>\n\t<meta property=\"og:image:height\" content=\"735\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Carlo Daniele\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"Interactivity API\u306f\u3001\u6b21\u4e16\u4ee3\u306eWordPress\u30b5\u30a4\u30c8\u3092\u69cb\u7bc9\u3067\u304d\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u306b\u306a\u308a\u307e\u3059\u3002\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u958b\u767a\u3092\u5305\u62ec\u7684\u306b\u53d6\u308a\u4e0a\u3052\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/how-to-create-interactive-blocks-1024x512.png\" \/>\n<meta name=\"twitter:creator\" content=\"@carlodaniele\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Carlo Daniele\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"9\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/\"},\"author\":{\"name\":\"Carlo Daniele\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/962dde02ea6f5df089b5d8d0853bbc63\"},\"headline\":\"Interactivity API\u3068\u306f\uff1f\u6700\u65b0WordPress\u30d6\u30ed\u30c3\u30af\u958b\u767a\u306b\u4fbf\u5229\",\"datePublished\":\"2025-11-06T07:51:52+00:00\",\"dateModified\":\"2025-11-25T12:31:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/\"},\"wordCount\":204,\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/how-to-create-interactive-blocks.png\",\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/\",\"name\":\"Interactivity API\u3068\u306f\uff1f\u6700\u65b0WordPress\u30d6\u30ed\u30c3\u30af\u958b\u767a\u306b\u4fbf\u5229\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/how-to-create-interactive-blocks.png\",\"datePublished\":\"2025-11-06T07:51:52+00:00\",\"dateModified\":\"2025-11-25T12:31:51+00:00\",\"description\":\"Interactivity API\u306f\u3001\u6b21\u4e16\u4ee3\u306eWordPress\u30b5\u30a4\u30c8\u3092\u69cb\u7bc9\u3067\u304d\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u306b\u306a\u308a\u307e\u3059\u3002\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u958b\u767a\u3092\u5305\u62ec\u7684\u306b\u53d6\u308a\u4e0a\u3052\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/#primaryimage\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/how-to-create-interactive-blocks.png\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/how-to-create-interactive-blocks.png\",\"width\":1470,\"height\":735},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API\",\"item\":\"https:\/\/kinsta.com\/jp\/topics\/api\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Interactivity API\u3068\u306f\uff1f\u6700\u65b0WordPress\u30d6\u30ed\u30c3\u30af\u958b\u767a\u306b\u4fbf\u5229\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinsta.com\/jp\/#website\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/962dde02ea6f5df089b5d8d0853bbc63\",\"name\":\"Carlo Daniele\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429e5568f88110fd9a409b84cb22197e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429e5568f88110fd9a409b84cb22197e?s=96&d=mm&r=g\",\"caption\":\"Carlo Daniele\"},\"description\":\"Carlo is a passionate lover of webdesign and front-end development. He has been playing with WordPress for more than 20 years, also in collaboration with Italian and European universities and educational institutions. He has written hundreds of articles and guides about WordPress, published both on Italian and international websites, as well as on printed magazines. You can find him on LinkedIn.\",\"sameAs\":[\"https:\/\/frammentidicodice.com\/\",\"https:\/\/x.com\/carlodaniele\"],\"url\":\"https:\/\/kinsta.com\/jp\/blog\/author\/carlodaniele\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Interactivity API\u3068\u306f\uff1f\u6700\u65b0WordPress\u30d6\u30ed\u30c3\u30af\u958b\u767a\u306b\u4fbf\u5229","description":"Interactivity API\u306f\u3001\u6b21\u4e16\u4ee3\u306eWordPress\u30b5\u30a4\u30c8\u3092\u69cb\u7bc9\u3067\u304d\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u306b\u306a\u308a\u307e\u3059\u3002\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u958b\u767a\u3092\u5305\u62ec\u7684\u306b\u53d6\u308a\u4e0a\u3052\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/","og_locale":"ja_JP","og_type":"article","og_title":"Interactivity API\u3068\u306f\uff1f\u6700\u65b0WordPress\u30d6\u30ed\u30c3\u30af\u958b\u767a\u306b\u4fbf\u5229","og_description":"Interactivity API\u306f\u3001\u6b21\u4e16\u4ee3\u306eWordPress\u30b5\u30a4\u30c8\u3092\u69cb\u7bc9\u3067\u304d\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u306b\u306a\u308a\u307e\u3059\u3002\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u958b\u767a\u3092\u5305\u62ec\u7684\u306b\u53d6\u308a\u4e0a\u3052\u307e\u3059\u3002","og_url":"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2025-11-06T07:51:52+00:00","article_modified_time":"2025-11-25T12:31:51+00:00","og_image":[{"width":1470,"height":735,"url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/how-to-create-interactive-blocks.png","type":"image\/png"}],"author":"Carlo Daniele","twitter_card":"summary_large_image","twitter_description":"Interactivity API\u306f\u3001\u6b21\u4e16\u4ee3\u306eWordPress\u30b5\u30a4\u30c8\u3092\u69cb\u7bc9\u3067\u304d\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u306b\u306a\u308a\u307e\u3059\u3002\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u958b\u767a\u3092\u5305\u62ec\u7684\u306b\u53d6\u308a\u4e0a\u3052\u307e\u3059\u3002","twitter_image":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/how-to-create-interactive-blocks-1024x512.png","twitter_creator":"@carlodaniele","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Carlo Daniele","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"9\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/#article","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/"},"author":{"name":"Carlo Daniele","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/962dde02ea6f5df089b5d8d0853bbc63"},"headline":"Interactivity API\u3068\u306f\uff1f\u6700\u65b0WordPress\u30d6\u30ed\u30c3\u30af\u958b\u767a\u306b\u4fbf\u5229","datePublished":"2025-11-06T07:51:52+00:00","dateModified":"2025-11-25T12:31:51+00:00","mainEntityOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/"},"wordCount":204,"publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/how-to-create-interactive-blocks.png","inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/","url":"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/","name":"Interactivity API\u3068\u306f\uff1f\u6700\u65b0WordPress\u30d6\u30ed\u30c3\u30af\u958b\u767a\u306b\u4fbf\u5229","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/#primaryimage"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/how-to-create-interactive-blocks.png","datePublished":"2025-11-06T07:51:52+00:00","dateModified":"2025-11-25T12:31:51+00:00","description":"Interactivity API\u306f\u3001\u6b21\u4e16\u4ee3\u306eWordPress\u30b5\u30a4\u30c8\u3092\u69cb\u7bc9\u3067\u304d\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u306b\u306a\u308a\u307e\u3059\u3002\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30d6\u30ed\u30c3\u30af\u958b\u767a\u3092\u5305\u62ec\u7684\u306b\u53d6\u308a\u4e0a\u3052\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/#primaryimage","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/how-to-create-interactive-blocks.png","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/11\/how-to-create-interactive-blocks.png","width":1470,"height":735},{"@type":"BreadcrumbList","@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-interactivity-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"API","item":"https:\/\/kinsta.com\/jp\/topics\/api\/"},{"@type":"ListItem","position":3,"name":"Interactivity API\u3068\u306f\uff1f\u6700\u65b0WordPress\u30d6\u30ed\u30c3\u30af\u958b\u767a\u306b\u4fbf\u5229"}]},{"@type":"WebSite","@id":"https:\/\/kinsta.com\/jp\/#website","url":"https:\/\/kinsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/962dde02ea6f5df089b5d8d0853bbc63","name":"Carlo Daniele","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429e5568f88110fd9a409b84cb22197e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429e5568f88110fd9a409b84cb22197e?s=96&d=mm&r=g","caption":"Carlo Daniele"},"description":"Carlo is a passionate lover of webdesign and front-end development. He has been playing with WordPress for more than 20 years, also in collaboration with Italian and European universities and educational institutions. He has written hundreds of articles and guides about WordPress, published both on Italian and international websites, as well as on printed magazines. You can find him on LinkedIn.","sameAs":["https:\/\/frammentidicodice.com\/","https:\/\/x.com\/carlodaniele"],"url":"https:\/\/kinsta.com\/jp\/blog\/author\/carlodaniele\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/66976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/users\/36"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/comments?post=66976"}],"version-history":[{"count":6,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/66976\/revisions"}],"predecessor-version":[{"id":67288,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/66976\/revisions\/67288"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/66976\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/66976\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/66976\/translations\/pt"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/66976\/translations\/fr"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/66976\/translations\/de"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/66976\/translations\/jp"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/66976\/translations\/nl"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/66976\/translations\/es"},{"href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/66976\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media\/66977"}],"wp:attachment":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media?parent=66976"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/tags?post=66976"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/topic?post=66976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}