{"id":62544,"date":"2025-01-03T17:29:11","date_gmt":"2025-01-03T08:29:11","guid":{"rendered":"https:\/\/kinsta.com\/jp\/?p=62544&#038;preview=true&#038;preview_id=62544"},"modified":"2026-02-24T20:10:05","modified_gmt":"2026-02-24T11:10:05","slug":"wordpress-data-package","status":"publish","type":"post","link":"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/","title":{"rendered":"@wordpress\/data\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u3092\u884c\u3046\u65b9\u6cd5"},"content":{"rendered":"<p>WordPress\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\uff08\u30c7\u30fc\u30bf\u306e\u6271\u3044\u65b9\u3084\u6574\u7406\u65b9\u6cd5\uff09\u7ba1\u7406\u306f\u3001\u8907\u96d1\u306a\u30bf\u30b9\u30af\u3067\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u898f\u6a21\u304c\u5927\u304d\u304f\u306a\u308b\u306b\u3064\u308c\u3001\u30c7\u30fc\u30bf\u306e\u6d41\u308c\u3092\u8ffd\u8de1\u3057\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u9593\u3067\u4e00\u8cab\u3057\u305f\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u4fdd\u3064\u3053\u3068\u306f\u3088\u308a\u96e3\u3057\u304f\u306a\u308a\u307e\u3059\u3002\u305d\u3053\u3067\u6d3b\u7528\u3057\u305f\u3044\u306e\u304c\u3001\u72b6\u614b\u7ba1\u7406\u306e\u305f\u3081\u306e\u5805\u7262\u306a\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3068\u306a\u308bWordPress\u306e\u30c7\u30fc\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8\uff08<code>@wordpress\/data<\/code>\uff09\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u3053\u306eWordPress\u306e\u30c7\u30fc\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u3064\u3044\u3066\u6398\u308a\u4e0b\u3052\u3001\u6982\u5ff5\u3068\u5b9f\u88c5\u6226\u7565\u3001\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u3054\u7d39\u4ecb\u3057\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>@wordpress\/data\u3068\u306f<\/h2>\n<p><a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/packages\/packages-data\/\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress\u306e\u30c7\u30fc\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8<\/a>\u3067\u3042\u308b<code>@wordpress\/data<\/code>\u306f\u3001JavaScript\uff08ES2015\u4ee5\u964d\uff09\u306e\u72b6\u614b\u7ba1\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u3092\u4e00\u5143\u7ba1\u7406\u3057\u3001\u52b9\u7387\u7684\u304b\u3064\u4e88\u6e2c\u53ef\u80fd\u306a\u65b9\u6cd5\u3067\u30c7\u30fc\u30bf\u3092\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002\u9069\u5207\u306b\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u8907\u96d1\u306a\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u69cb\u7bc9\u3084\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u306e\u30c7\u30fc\u30bf\u30d5\u30ed\u30fc\u306e\u51e6\u7406\u3092\u7c21\u7d20\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><code>@wordpress\/data<\/code>\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/react-components-library\/#20-react-redux\">React\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0<\/a>\u3067\u4eba\u6c17\u306e\u72b6\u614b\u7ba1\u7406\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3001<a href=\"https:\/\/redux.js.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Redux<\/a>\u304b\u3089\u7740\u60f3\u3092\u5f97\u3066\u3044\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_188531\" aria-describedby=\"caption-attachment-188531\" style=\"width: 960px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-188531 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2024\/11\/the-redux-website-home-page.png\" alt=\"Redux\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\" width=\"960\" height=\"594\"><figcaption id=\"caption-attachment-188531\" class=\"wp-caption-text\">Redux\u306e\u516c\u5f0f\u30b5\u30a4\u30c8<\/figcaption><\/figure>\n<p>\u3053\u306e\u30c7\u30fc\u30bf\u30e2\u30b8\u30e5\u30fc\u30eb\u306fWordPress\u74b0\u5883\u5185\u3067\u52d5\u4f5c\u3057\u3001WordPress\u56fa\u6709\u306e\u6a5f\u80fd\u3084API\u3068\u7d71\u5408\u3055\u308c\u3066\u3044\u307e\u3059\u3002<a href=\"https:\/\/kinsta.com\/jp\/blog\/gutenberg-blocks\/\">WordPress\u306e\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u30fc<\/a>\u5411\u3051\u306b\u958b\u767a\u3092\u884c\u3046\u5834\u5408\u3001\u307e\u305f\u306f\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u30fc\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u5834\u5408\u3001\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u305d\u306e\u72b6\u614b\u7ba1\u7406\u306b\u304a\u3044\u3066\u91cd\u8981\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002\u958b\u767a\u3059\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u30c6\u30fc\u30de\u3067\u540c\u3058\u30c4\u30fc\u30eb\u3084\u30d1\u30bf\u30fc\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u4e00\u8cab\u6027\u306e\u3042\u308b\u4f7f\u3044\u3084\u3059\u3044\u958b\u767a\u74b0\u5883\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>@wordpress\/data\u3068Redux\u306e\u95a2\u4fc2\u6027<\/h3>\n<p><code>@wordpress\/data<\/code>\u306f\u3001Redux\u304b\u3089\u7740\u60f3\u3092\u5f97\u3066\u3044\u307e\u3059\u304c\u3001Redux\u3092\u305d\u306e\u307e\u307e\u79fb\u690d\u3057\u305f\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002WordPress\u306e\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u306b\u5408\u308f\u305b\u3066\u591a\u6570\u306e\u6539\u826f\u304c\u52a0\u3048\u3089\u308c\u3066\u304a\u308a\u3001Redux\u3068\u6bd4\u8f03\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>WordPress\u306eAPI\u3084\u6a5f\u80fd\u3068\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u308b\uff08\u6a19\u6e96\u7684\u306aRedux\u3067\u306f\u8abf\u6574\u304c\u5fc5\u8981\uff09\u3002<\/li>\n<li>\u3088\u308a\u52b9\u7387\u7684\u306aAPI\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u3001\u7c21\u5358\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/li>\n<li><a style=\"background-color: var(--kmt-sys-color-background-neutral-weak, #f9f5f3);font-weight: var(--kmt-sys-typography-body-font-weight)\" href=\"https:\/\/kinsta.com\/jp\/blog\/node-js-libraries\/#5-async\">\u975e\u540c\u671f\u30a2\u30af\u30b7\u30e7\u30f3<\/a>\u306e\u30b5\u30dd\u30fc\u30c8\u304c\u7d44\u307f\u8fbc\u307e\u308c\u3066\u304a\u308a\u3001<span style=\"background-color: var(--kmt-sys-color-background-neutral-weak, #f9f5f3);font-weight: var(--kmt-sys-typography-body-font-weight)\">WordPress REST API\u3092\u6271\u3046\u5834\u5408\u306b\u4fbf\u5229\u3002<\/span><\/li>\n<\/ul>\n<p>\u307e\u305f\u3001<code>@wordpress\/data<\/code>\u3092<a href=\"https:\/\/kinsta.com\/jp\/blog\/rest-api-vs-web-api\/\">REST API<\/a>\u3068\u6bd4\u8f03\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u3069\u3061\u3089\u3082\u30c7\u30fc\u30bf\u7ba1\u7406\u3092\u6271\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u305e\u308c\u7570\u306a\u308b\u76ee\u7684\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>WordPress REST API\u306f\u3001HTTP\u7d4c\u7531\u3067WordPress\u306e\u30c7\u30fc\u30bf\u3068\u3084\u308a\u3068\u308a\u3059\u308b\u65b9\u6cd5\u3092\u63d0\u4f9b\u3057\u3001\u5916\u90e8\u30a2\u30d7\u30ea\u3084<a href=\"https:\/\/kinsta.com\/blog\/headless-wordpress\/\">\u30d8\u30c3\u30c9\u30ec\u30b9WordPress\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/a>\u306a\u3069\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-rest-api\/\">\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u3084\u64cd\u4f5c<\/a>\u304c\u5fc5\u8981\u306b\u306a\u308b\u5834\u5408\u306b\u4f7f\u7528\u3059\u308b\u3002<\/li>\n<li><code>@wordpress\/data<\/code>\u306f\u3001\u30c7\u30fc\u30bf\u3068UI\u306e\u72b6\u614b\u3092\u4e00\u5143\u7684\u306b\u4fdd\u5b58\u3057\u3001\u30a2\u30d7\u30ea\u5185\u3067\u30c7\u30fc\u30bf\u306e\u6d41\u308c\u3084\u66f4\u65b0\u3092\u51e6\u7406\u3059\u308b\u3002<\/li>\n<\/ul>\n<p>\u591a\u304f\u306e\u5834\u5408\u3001\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u304a\u3088\u3073\u66f4\u65b0\u3059\u308bREST API \u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5185\u3067\u30c7\u30fc\u30bf\u3092\u7ba1\u7406\u3059\u308b<code>@wordpress\/data<\/code>\u306e\u4e21\u65b9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>@wordpress\/data\u306e\u4e3b\u306a\u6982\u5ff5\u3068\u7528\u8a9e<\/h2>\n<p><code>@wordpress\/data<\/code>\u3067\u306f\u3001\u76f4\u611f\u7684\u306b\u72b6\u614b\u7ba1\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u8a00\u3046\u300c\u72b6\u614b\u300d\u3068\u306f\u3001\u30b9\u30c8\u30a2\u5185\u306e\u30c7\u30fc\u30bf\u3092\u6307\u3057\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u73fe\u5728\u306e\u72b6\u614b\u3092\u8868\u3057\u3001UI\u306e\u72b6\u614b\uff08\u30e2\u30fc\u30c0\u30eb\u304c\u958b\u3044\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u306a\u3069\uff09\u3084\u30c7\u30fc\u30bf\u306e\u72b6\u614b\uff08\u6295\u7a3f\u4e00\u89a7\u306a\u3069\uff09\u3092\u542b\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_188331\" aria-describedby=\"caption-attachment-188331\" style=\"width: 1200px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-188331 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2024\/11\/post-list.png\" alt=\"\u6295\u7a3f\u30c7\u30fc\u30bf\u306e\u72b6\u614b\u306f\u3001WordPress\u306e\u30c7\u30fc\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u7ba1\u7406\u3059\u308b\u9818\u57df\u306e1\u3064\" width=\"1200\" height=\"721\"><figcaption id=\"caption-attachment-188331\" class=\"wp-caption-text\">\u6295\u7a3f\u30c7\u30fc\u30bf\u306e\u72b6\u614b\u306f\u3001WordPress\u306e\u30c7\u30fc\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u7ba1\u7406\u3059\u308b\u9818\u57df\u306e1\u3064<\/figcaption><\/figure>\n<p>\u3053\u306e\u6587\u8108\u3067\u306f\u3001\u300c\u30b9\u30c8\u30a2\u300d\u306f<code>@wordpress\/data<\/code>\u306e\u4e2d\u5fc3\u7684\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002\u30b5\u30a4\u30c8\u5168\u4f53\u306e\u72b6\u614b\u3092\u4fdd\u6301\u3057\u3001\u305d\u306e\u72b6\u614b\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u308a\u66f4\u65b0\u3057\u305f\u308a\u3059\u308b\u305f\u3081\u306e\u65b9\u6cd5\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002WordPress\u3067\u306f\u3001\u8907\u6570\u306e\u30b9\u30c8\u30a2\u3092\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u3001\u305d\u308c\u305e\u308c\u304c\u30b5\u30a4\u30c8\u306e\u7279\u5b9a\u306e\u9818\u57df\u3092\u62c5\u5f53\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30c8\u30a2\u3092\u7ba1\u7406\u3059\u308b\u306b\u306f\u3001\u30ec\u30b8\u30b9\u30c8\u30ea\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u30ec\u30b8\u30b9\u30c8\u30ea\u306f\u30b9\u30c8\u30a2\u3092\u767b\u9332\u3057\u305f\u308a\u3001\u65e2\u5b58\u306e\u30b9\u30c8\u30a2\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u308a\u3059\u308b\u305f\u3081\u306e\u65b9\u6cd5\u3092\u63d0\u4f9b\u3059\u308b\u3082\u306e\u3067\u3001\u30ec\u30b8\u30b9\u30c8\u30ea\u304c\u30b9\u30c8\u30a2\u3092\u4fdd\u6301\u3057\u3001\u30b9\u30c8\u30a2\u304c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u3092\u4fdd\u6301\u3057\u307e\u3059\u3002<\/p>\n<p>\u72b6\u614b\u7ba1\u7406\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u91cd\u8981\u306a\u6982\u5ff5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30a2\u30af\u30b7\u30e7\u30f3\uff08Action\uff09\uff1a\u72b6\u614b\u306e\u5909\u66f4\u3092\u8a18\u8ff0\u3059\u308b\u3002\u30a2\u30af\u30b7\u30e7\u30f3\u306f\u30d7\u30ec\u30fc\u30f3\u306aJavaScript\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3001\u72b6\u614b\u306e\u66f4\u65b0\u3092\u30c8\u30ea\u30ac\u30fc\u3059\u308b\u552f\u4e00\u306e\u624b\u6bb5\u3002\u901a\u5e38\u306f<code>type<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6301\u3061\u3001\u8ffd\u52a0\u30c7\u30fc\u30bf\u3092\u542b\u3080\u5834\u5408\u3082\u3042\u308b\u3002<\/li>\n<li>\u30bb\u30ec\u30af\u30bf\uff08Selector\uff09\uff1a\u30b9\u30c8\u30a2\u304b\u3089\u72b6\u614b\u306e\u7279\u5b9a\u306e\u90e8\u5206\u3092\u62bd\u51fa\u3059\u308b\u3002\u3053\u306e\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30b9\u30c8\u30a2\u306e\u69cb\u9020\u3092\u76f4\u63a5\u64cd\u4f5c\u3059\u308b\u3053\u3068\u306a\u304f\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3002\u30ea\u30be\u30eb\u30d0\u306f\u3053\u308c\u306b\u95a2\u9023\u3057\u3001<a href=\"https:\/\/kinsta.com\/courses\/speed-up-wordpress\/lazy-loading-async-defer\/\">\u975e\u540c\u671f\u30c7\u30fc\u30bf\u306e\u53d6\u5f97<\/a>\u3092\u51e6\u7406\u3002\u30bb\u30ec\u30af\u30bf\u3092\u5b9f\u884c\u3059\u308b\u524d\u306b\u3001\u30b9\u30c8\u30a2\u306e\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3059\u308b\u3002<\/li>\n<li>\u30ea\u30c7\u30e5\u30fc\u30b5\u30fc\uff08Reducer\uff09\uff1a\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u5fdc\u3058\u3066\u72b6\u614b\u3092\u3069\u306e\u3088\u3046\u306b\u5909\u5316\u3055\u305b\u308b\u304b\u3092\u6307\u793a\u3059\u308b\u3002\u73fe\u5728\u306e\u72b6\u614b\u3068\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u5f15\u6570\u306b\u3068\u308a\u3001\u65b0\u305f\u306a\u72b6\u614b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3059\u3002\u5236\u5fa1\u95a2\u6570\u306f\u3001\u8907\u96d1\u306a\u975e\u540c\u671f\u51e6\u7406\u3092\u526f\u4f5c\u7528\u306a\u304f\u51e6\u7406\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/li>\n<\/ul>\n<p>\u3053\u308c\u3089\u306e\u57fa\u672c\u7684\u306a\u6982\u5ff5\u306f\u3001\u30b9\u30c8\u30a2\u3092\u4e2d\u5fc3\u3068\u3057\u305f\u5805\u7262\u306a\u72b6\u614b\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u306e\u69cb\u7bc9\u306b\u95a2\u4fc2\u3059\u308b\u305f\u3081\u3001\u7406\u89e3\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>@wordpress\/data\u306e\u4e2d\u6838\u3068\u306a\u308b\u30b9\u30c8\u30a2<\/h2>\n<p>\u30b9\u30c8\u30a2\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u3092\u683c\u7d0d\u3059\u308b\u30b3\u30f3\u30c6\u30ca\u3067\u3042\u308a\u3001\u72b6\u614b\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u65b9\u6cd5\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<code>@wordpress\/data<\/code>\u306b\u306f\u4ed6\u306b\u3082\u3044\u304f\u3064\u304b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u7d44\u307f\u8fbc\u307e\u308c\u3066\u304a\u308a\u3001\u305d\u308c\u305e\u308c\u30d6\u30ed\u30c3\u30af\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/gutenberg-wordpress-editor\/\">\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u30fc<\/a>\u3001\u30b3\u30a2\u3001\u6295\u7a3f\u7de8\u96c6\u306a\u3069\u306e\u30b9\u30c8\u30a2\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5404\u30b9\u30c8\u30a2\u306f<code>core<\/code>\u3001<code>core\/editor<\/code>\u3001<code>core\/notices<\/code>\u306e\u3088\u3046\u306b\u3001\u56fa\u6709\u306e\u540d\u524d\u7a7a\u9593\u3092\u6301\u3061\u307e\u3059\u3002\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30d7\u30e9\u30b0\u30a4\u30f3\u3082\u30b9\u30c8\u30a2\u3092\u767b\u9332\u3059\u308b\u305f\u3081\u3001\u7af6\u5408\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u4e00\u610f\u306e\u540d\u524d\u7a7a\u9593\u3092\u9078\u629e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3044\u305a\u308c\u306b\u3057\u3066\u3082\u3001\u767b\u9332\u3057\u305f\u30b9\u30c8\u30a2\u306f\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ec\u30b8\u30b9\u30c8\u30ea\u306b\u767b\u9332\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4e2d\u6838\u3068\u306a\u308b\u30ec\u30b8\u30b9\u30c8\u30ea\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f79\u5272\u3092\u62c5\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30b9\u30c8\u30a2\u306e\u65b0\u898f\u767b\u9332<\/li>\n<li>\u65e2\u5b58\u30b9\u30c8\u30a2\u3078\u306e\u30a2\u30af\u30bb\u30b9<\/li>\n<li>\u72b6\u614b\u306e\u5909\u66f4\u306b\u5bfe\u3059\u308b\u8cfc\u8aad\u306e\u7ba1\u7406<\/li>\n<\/ul>\n<p>\u30ec\u30b8\u30b9\u30c8\u30ea\u3068\u76f4\u63a5\u3084\u308a\u3068\u308a\u3059\u308b\u3053\u3068\u306f\u3042\u307e\u308a\u3042\u308a\u307e\u305b\u3093\u304c\u3001<code>@wordpress\/data<\/code>\u304cWordPress\u5168\u4f53\u306e\u72b6\u614b\u7ba1\u7406\u3092\u3069\u306e\u3088\u3046\u306b\u30aa\u30fc\u30b1\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u304b\u306b\u95a2\u3057\u3066\u3001\u30ec\u30b8\u30b9\u30c8\u30ea\u306e\u5f79\u5272\u306f\u7406\u89e3\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>WordPress\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u3068\u306e\u57fa\u672c\u7684\u306a\u3084\u308a\u53d6\u308a<\/h3>\n<p><a href=\"https:\/\/www.javascripttutorial.net\/es6\/\" target=\"_blank\" rel=\"noopener noreferrer\">ES2015<\/a>\u4ee5\u964d\u306eJavaScript\u3092\u4f7f\u7528\u3057\u3066\u3044\u3066\u3001WordPress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u30c6\u30fc\u30de\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u3053\u308c\u3092\u4f9d\u5b58\u95a2\u4fc2\u3068\u3057\u3066\u542b\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">npm install @wordpress\/data --save<\/code><\/pre>\n<p>\u30b3\u30fc\u30c9\u5185\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089\u5fc5\u8981\u306a\u95a2\u6570\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">import { select, dispatch, subscribe } from '@wordpress\/data';<\/code><\/pre>\n<p>\u65e2\u5b58\u306eWordPress\u30b9\u30c8\u30a2\u3068\u3084\u308a\u3068\u308a\u3059\u308b\u306b\u306f\u3001\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u305f\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001<code>select<\/code>\u3092\u4f7f\u3063\u3066\u72b6\u614b\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const posts = select('core').getPosts();<\/code><\/pre>\n<p>\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\u3082\u540c\u69d8\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">dispatch('core').savePost(postData);<\/code><\/pre>\n<p>\u72b6\u614b\u306e\u5909\u66f4\u3092\u8cfc\u8aad\uff08\u76e3\u8996\uff09\u3059\u308b\u5834\u5408\u306f\u3001\u5c11\u3057\u7570\u306a\u308b\u5f62\u5f0f\u3092\u4f7f\u7528\u3057\u307e\u3059\u304c\u3001\u8003\u3048\u65b9\u306f\u540c\u3058\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">subscribe(() =&gt; {\n  const newPosts = select('core').getPosts();\n  \/\/ \u65b0\u898f\u6295\u7a3f\u306b\u57fa\u3065\u3044\u3066UI\u3092\u66f4\u65b0\n});<\/code><\/pre>\n<p>\u305f\u3060\u3057\u3001\u5e38\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b9\u30c8\u30a2\u3067\u4f5c\u696d\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u591a\u304f\u306e\u5834\u5408\u306f\u3001\u8ffd\u52a0\u3057\u305f\u65e2\u5b58\u306e\u30b9\u30c8\u30a2\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001\u72ec\u81ea\u306e\u30b9\u30c8\u30a2\u3092\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<h2>WordPress\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u306e\u767b\u9332\u65b9\u6cd5<\/h2>\n<p>\u30b9\u30c8\u30a2\u306e\u8a2d\u5b9a\u3092\u5b9a\u7fa9\u3057\u3001<code>@wordpress\/data<\/code>\u306b\u767b\u9332\u3059\u308b\u306b\u306f\u3001\u307e\u305a<code>register<\/code>\u95a2\u6570\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">\u2026\nimport { createReduxStore, register } from '@wordpress\/data';\n\u2026<\/code><\/pre>\n<p>\u3053\u306e\u95a2\u6570\u306f1\u3064\u306e\u5f15\u6570\u3001\u30b9\u30c8\u30a2\u8a18\u8ff0\u5b50\u3092\u53d6\u308a\u307e\u3059\u3002\u7d9a\u3044\u3066\u3001\u30b9\u30c8\u30a2\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u72b6\u614b\u3092\u5b9a\u7fa9\u3057\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">\u2026\nconst DEFAULT_STATE = {\n  todos: [],\n};\n\u2026<\/code><\/pre>\n<p><code>actions<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001<code>Reducer<\/code>\u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u3066\u72b6\u614b\u306e\u66f4\u65b0\u3092\u51e6\u7406\u3057\u3001<code>selectors<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3066\u72b6\u614b\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const actions = {\n  addTodo: (text) =&gt; ({\n    type: 'ADD_TODO',\n    text,\n  }),\n};\n\nconst reducer = (state = DEFAULT_STATE, action) =&gt; {\n  switch (action.type) {\n    case 'ADD_TODO':\n      return {\n      ...state,\n      todos: [...state.todos, { text: action.text, completed: false }],\n      };\n    default:\n      return state;\n   }\n};\n\nconst selectors = {\n  getTodos: (state) =&gt; state.todos,\n};<\/code><\/pre>\n<p>\u30b9\u30c8\u30a2\u306e\u8a2d\u5b9a\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001<code>createReduxStore<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u7528\u3057\u3066\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30b9\u30c8\u30a2\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3001\u30bb\u30ec\u30af\u30bf\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3001\u305d\u306e\u4ed6\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u521d\u671f\u5316\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const store = createReduxStore('my-plugin\/todos', {\n  reducer,\n  actions,\n  selectors,\n});<\/code><\/pre>\n<p>\u3053\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306f\u3001\u5c11\u306a\u304f\u3068\u3082\u72b6\u614b\u306e\u5f62\u3068\u4ed6\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u53cd\u5fdc\u3057\u3066\u3069\u306e\u3088\u3046\u306b\u5909\u5316\u3059\u308b\u304b\u3092\u5b9a\u7fa9\u3059\u308b\u30ea\u30c7\u30e5\u30fc\u30b5\u30fc\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u6700\u5f8c\u306b\u3001<code>createReduxStore<\/code>\u3067\u5b9a\u7fa9\u3057\u305f\u30b9\u30c8\u30a2\u8a18\u8ff0\u5b50\u3092\u547c\u3073\u51fa\u3057\u3066\u3001\u30b9\u30c8\u30a2\u3092\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">register(store);<\/code><\/pre>\n<p>\u3053\u308c\u3067\u3001\u4ed6\u306e\u30b9\u30c8\u30a2\u3068\u540c\u3058\u3088\u3046\u306b\u64cd\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">import { select, dispatch } from '@wordpress\/data';\n\/\/ \u65b0\u898fTodo\u3092\u8ffd\u52a0\ndispatch('my-plugin\/todos').addTodo('Learn WordPress data package');\n\/\/ \u3059\u3079\u3066\u306eTodo\u3092\u53d6\u5f97\nconst todos = select('my-plugin\/todos').getTodos();<\/code><\/pre>\n<p><code>@wordpress\/data<\/code>\u3092\u4f7f\u7528\u3059\u308b\u4e0a\u3067\u91cd\u8981\u306b\u306a\u308b\u306e\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f7f\u7528\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<h2>WordPress\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u306e5\u3064\u306e\u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<p><code>@wordpress\/data<\/code>\u3092\u4f7f\u7528\u3059\u308b\u969b\u306e\u4f5c\u696d\u306e\u591a\u304f\u306f\u3001\u300c\u9006\u5411\u304d\u300d\u306b\u9032\u884c\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30b9\u30c8\u30a2\u81ea\u4f53\u3092\u5b9a\u7fa9\u3059\u308b\u524d\u306b\u3001\u4f4e\u30ec\u30d9\u30eb\u306e\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5b9a\u7fa9\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<code>createReduxStore<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u305d\u306e\u4ee3\u8868\u4f8b\u3067\u3001\u30b9\u30c8\u30a2\u306e\u767b\u9332\u306b\u4f7f\u7528\u3059\u308b\u8a18\u8ff0\u5b50\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u3001<a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/packages\/packages-data\/#createreduxstore\" target=\"_blank\" rel=\"noopener noreferrer\">\u5b9a\u7fa9\u3057\u305f\u3059\u3079\u3066\u306e\u8981\u7d20<\/a>\u3092\u307e\u3068\u3081\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">import { createReduxStore } from '@wordpress\/data';\n  const store = createReduxStore( 'demo', {\n    reducer: ( state = 'OK' ) =&gt; state,\n    selectors: {\n    getValue: ( state ) =&gt; state,\n    },\n  } );<\/code><\/pre>\n<p>\u305d\u306e\u4ed6\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u3064\u3044\u3066\u3082\u3001\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3068\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<div><\/div><kinsta-auto-toc list-style=\"decimal\" selector=\"h3\" count-number=\"5\" sub-toc=\"true\"><\/kinsta-auto-toc>\n<h3>1. \u30a2\u30af\u30b7\u30e7\u30f3\uff08Action\uff09<\/h3>\n<p>\u30a2\u30af\u30b7\u30e7\u30f3\u306f\u3001\u30b9\u30c8\u30a2\u306e\u72b6\u614b\u5909\u66f4\u3092\u30c8\u30ea\u30ac\u30fc\u3059\u308b\u4e3b\u306a\u624b\u6bb5\u3067\u3059\u3002JavaScript\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3001\u305d\u306e\u540d\u306e\u901a\u308a\u300c\u4f55\u3092\u3059\u308b\u3079\u304d\u304b\u300d\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002\u3069\u306e\u3088\u3046\u306a\u72b6\u614b\u3092\u53d6\u5f97\u3057\u305f\u3044\u304b\u3092\u6c7a\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u307e\u305a\u306f\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const actions = {\n  addTodo: (text) =&gt; ({\n    type: 'ADD_TODO',\n    text,\n  }),\n  toggleTodo: (index) =&gt; ({\n    type: 'TOGGLE_TODO',\n    index,\n  }),\n};<\/code><\/pre>\n<p><a href=\"https:\/\/redux.js.org\/understanding\/thinking-in-redux\/glossary#action-creator\">ActionCreators<\/a>\u306f\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u5f15\u6570\u3092\u53d6\u308a\u3001\u5b9a\u7fa9\u3057\u305fReducer\u306b\u6e21\u3059\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const actions = {\n  updateStockPrice: (symbol, newPrice) =&gt; {\n  return {\n    type: 'UPDATE_STOCK_PRICE',\n    symbol,\n    newPrice\n  };\n},<\/code><\/pre>\n<p>\u30b9\u30c8\u30a2\u306e\u8a18\u8ff0\u5b50\u3092\u6e21\u3059\u3068\u3001ActionCreators\u3092\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\u3057\u3066\u72b6\u614b\u306e\u5024\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">dispatch('my-plugin\/todos').updateStockPrice('\u00a5', '150.37');<\/code><\/pre>\n<p>\u30a2\u30af\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001\u72b6\u614b\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u306b\u95a2\u3059\u308b\u30ea\u30c7\u30e5\u30fc\u30b5\u30fc\u3078\u306e\u6307\u793a\u3060\u3068\u8003\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5c11\u306a\u304f\u3068\u3082\u3001\u4f5c\u6210\u3001\u66f4\u65b0\u3001\u8aad\u307f\u8fbc\u307f\u3001\u524a\u9664\uff08CRUD\uff09\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u5b9a\u7fa9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3067\u3057\u3087\u3046\u3002\u307e\u305f\u3001\u7279\u306b\u5b9a\u6570\u3068\u3057\u3066\u5b9a\u7fa9\u3059\u308b\u5834\u5408\u306f\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u30bf\u30a4\u30d7\u3092\u500b\u5225\u306eJavaScript\u30d5\u30a1\u30a4\u30eb\u306b\u307e\u3068\u3081\u3001\u305d\u308c\u3089\u3059\u3079\u3066\u306e\u30bf\u30a4\u30d7\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>2. \u30ea\u30c7\u30e5\u30fc\u30b5\u30fc\uff08Reducer\uff09<\/h3>\n<p>\u30ea\u30c7\u30e5\u30fc\u30b5\u30fc\u306f\u30a2\u30af\u30b7\u30e7\u30f3\u3068\u4e26\u3093\u3067\u4e2d\u5fc3\u7684\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u304b\u3089\u306e\u6307\u793a\u306b\u5fdc\u3058\u3066\u72b6\u614b\u3092\u3069\u306e\u3088\u3046\u306b\u5909\u5316\u3055\u305b\u308b\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30a2\u30af\u30b7\u30e7\u30f3\u304b\u3089\u306e\u6307\u793a\u3068\u73fe\u5728\u306e\u72b6\u614b\u3092\u6e21\u3059\u3068\u3001\u65b0\u305f\u306a\u72b6\u614b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3057\u3001\u305d\u308c\u3092\u30c1\u30a7\u30fc\u30f3\u306b\u6cbf\u3063\u3066\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const reducer = (state = DEFAULT_STATE, action) =&gt; {\n  switch (action.type) {\n    case 'ADD_TODO':\n      return {\n        ...state,\n        todos: [...state.todos, { text: action.text, completed: false }],\n      };\n    case 'TOGGLE_TODO':\n      return {\n        ...state,\n        todos: state.todos.map((todo, index) =&gt;\n          index === action.index ? { ...todo, completed: !todo.completed } : todo\n        ),\n    };\n    default:\n      return state;\n    }\n};<\/code><\/pre>\n<p>\u306a\u304a\u3001\u30ea\u30c7\u30e5\u30fc\u30b5\u30fc\u306f<a href=\"https:\/\/www.geeksforgeeks.org\/functional-programming-pure-and-impure-functions\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u7d14\u7c8b\u306a\u95a2\u6570<\/a>\u3067\u306a\u3051\u308c\u3070\u306a\u3089\u305a\u3001\u53d7\u3051\u53d6\u3063\u305f\u72b6\u614b\u3092\u5909\u5316\u3055\u305b\u308b\u3079\u304d\u3067\u306a\u3044\u3053\u3068\u306f\u5ff5\u982d\u306b\u304a\u3044\u3066\u304f\u3060\u3055\u3044\uff08\u3080\u3057\u308d\u66f4\u65b0\u3057\u3066\u8fd4\u3059\u3079\u304d\uff09\u3002\u30ea\u30c7\u30e5\u30fc\u30b5\u30fc\u3068\u30a2\u30af\u30b7\u30e7\u30f3\u306f\u591a\u304f\u306e\u70b9\u3067\u5171\u751f\u95a2\u4fc2\u306b\u3042\u308b\u305f\u3081\u3001\u4e21\u8005\u304c\u3069\u306e\u3088\u3046\u306b\u9023\u643a\u3057\u3066\u52d5\u4f5c\u3059\u308b\u304b\u306f\u628a\u63e1\u3057\u3066\u304a\u304f\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<h3>3. \u30bb\u30ec\u30af\u30bf\uff08Selector\uff09<\/h3>\n<p>\u767b\u9332\u3055\u308c\u305f\u30b9\u30c8\u30a2\u304b\u3089\u73fe\u5728\u306e\u72b6\u614b\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u3001\u30bb\u30ec\u30af\u30bf\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u30b9\u30c8\u30a2\u306e\u72b6\u614b\u3092\u300c\u516c\u958b\u300d\u3059\u308b\u4e3b\u306a\u65b9\u6cd5\u3067\u3042\u308a\u3001\u30b9\u30c8\u30a2\u306e\u5185\u90e8\u69cb\u9020\u304b\u3089\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u5207\u308a\u96e2\u3059\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const selectors = {\n  getTodos: (state) =&gt; state.todos,\n  getTodoCount: (state) =&gt; state.todos.length,\n};<\/code><\/pre>\n<p>\u30bb\u30ec\u30af\u30bf\u306f\u3001<code>select<\/code>\u95a2\u6570\u3067\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const todoCount = select('my-plugin\/todos').getTodoCount();<\/code><\/pre>\n<p>\u305f\u3060\u3057\u3001\u30bb\u30ec\u30af\u30bf\u306f\u30c7\u30fc\u30bf\u3092\u3069\u3053\u304b\u306b\u9001\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u5358\u306b\u30c7\u30fc\u30bf\u3092\u63d0\u793a\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u306e\u307f\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30bb\u30ec\u30af\u30bf\u306f\u3001\u72b6\u614b\u306b\u6b63\u78ba\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u6570\u306e\u5f15\u6570\u3092\u53d7\u3051\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u30bb\u30ec\u30af\u30bf\u304c\u8fd4\u3059\u5024\u306f\u3001\u5b9a\u7fa9\u3057\u305f\u30bb\u30ec\u30af\u30bf\u5185\u3067\u5f15\u6570\u304c\u9054\u6210\u3057\u305f\u7d50\u679c\u306b\u306a\u308a\u307e\u3059\u3002\u30a2\u30af\u30b7\u30e7\u30f3\u3068\u540c\u69d8\u306b\u3001\u6570\u304c\u591a\u304f\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u3059\u3079\u3066\u306e\u30bb\u30ec\u30af\u30bf\u3092\u683c\u7d0d\u3059\u308b\u5225\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3059\u308b\u306e\u3082\u3042\u308a\u3067\u3059\u3002<\/p>\n<h3>4. \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\uff08Control\uff09<\/h3>\n<p>\u30b5\u30a4\u30c8\u306e\u6a5f\u80fd\u306e\u5b9f\u884c\u30d5\u30ed\u30fc\u3092\u30ac\u30a4\u30c9\u3059\u308b\u3001\u3042\u308b\u3044\u306f\u305d\u306e\u4e2d\u3067\u30ed\u30b8\u30c3\u30af\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001<a href=\"https:\/\/github.com\/WordPress\/gutenberg\/blob\/0b76a258213bde016726e16949d76fed12c5a34d\/packages\/redux-routine\/README.md\" target=\"_blank\" rel=\"noopener noreferrer\">\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u4f7f\u7528<\/a>\u3057\u307e\u3059\u3002\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u30d5\u30ed\u30fc\u306e\u52d5\u4f5c\u3092\u5b9a\u7fa9\u3057\u3001\u30ea\u30be\u30eb\u30d0\u306b\u6e21\u3059\u72b6\u614b\u3092\u53ce\u96c6\u3059\u308b\u305f\u3081\u306e\u4ef2\u4ecb\u5f79\u3068\u3057\u3066\u52d5\u4f5c\u3059\u308b\u305f\u3081\u3001<code>@wordpress\/data<\/code>\u306e\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u306e\u3088\u3046\u306a\u5b58\u5728\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001API\u547c\u3073\u51fa\u3057\u3084\u30d6\u30e9\u30a6\u30b6API\u3068\u306e\u3084\u308a\u3068\u308a\u306e\u3088\u3046\u306a\u30b9\u30c8\u30a2\u306e\u526f\u4f5c\u7528\u3082\u51e6\u7406\u3057\u307e\u3059\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306f\u3001\u8907\u96d1\u306a\u975e\u540c\u671f\u51e6\u7406\u3092\u53ef\u80fd\u306b\u3057\u306a\u304c\u3089\u3001\u30ea\u30c7\u30e5\u30fc\u30b5\u30fc\u3092\u30af\u30ea\u30fc\u30f3\u306a\u72b6\u614b\u306b\u4fdd\u3061\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const controls = {\n  FETCH_TODOS: async () =&gt; {\n    const response = await fetch('\/api\/todos');\n    return response.json();\n  },\n};\n\nconst actions = {\n  fetchTodos: () =&gt; ({ type: 'FETCH_TODOS' }),\n};<\/code><\/pre>\n<p>\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u8fd4\u3059\u3053\u306e\u30b5\u30a4\u30af\u30eb\u306f\u3001\u30d7\u30ed\u30bb\u30b9\u5168\u4f53\u306b\u3068\u3063\u3066\u91cd\u8981\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u304b\u3089\u306e\u547c\u3073\u51fa\u3057\u304c\u306a\u3051\u308c\u3070\u3001\u305d\u306e\u30c7\u30fc\u30bf\u3092\u4f7f\u3046\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<h3>5. \u30ea\u30be\u30eb\u30d0\uff08Resolver\uff09<\/h3>\n<p>\u5148\u306b\u89e6\u308c\u305f\u3068\u304a\u308a\u3001\u30bb\u30ec\u30af\u30bf\u306f\u30b9\u30c8\u30a2\u306e\u72b6\u614b\u3092\u516c\u958b\u3059\u308b\u3082\u306e\u306e\u3001\u305d\u306e\u30c7\u30fc\u30bf\u3092\u3069\u3053\u306b\u3082\u9001\u4fe1\u3057\u307e\u305b\u3093\u3002\u30ea\u30be\u30eb\u30d0\u306f\u3001\u30bb\u30ec\u30af\u30bf\uff08\u304a\u3088\u3073\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\uff09\u3068\u9023\u643a\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u975e\u540c\u671f\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u3082\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const resolvers = {\n  getTodos: async () =&gt; {\n    const todos = await controls.FETCH_TODOS();\n    return actions.receiveTodos(todos);\n  },\n};<\/code><\/pre>\n<p>\u30ea\u30be\u30eb\u30d0\u306f\u3001\u30bb\u30ec\u30af\u30bf\u3092\u5b9f\u884c\u3059\u308b\u524d\u306b\u3001\u8981\u6c42\u3055\u308c\u305f\u30c7\u30fc\u30bf\u304c\u30b9\u30c8\u30a2\u306b\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3053\u306e\u30ea\u30be\u30eb\u30d0\u3068\u30bb\u30ec\u30af\u30bf\u306e\u7dca\u5bc6\u306a\u63a5\u7d9a\u306b\u306f\u3001<code>@wordpress\/data<\/code>\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u304d\u3001\u3069\u306e\u30ea\u30be\u30eb\u30d0\u3092\u547c\u3073\u51fa\u3059\u3079\u304d\u304b\u3092\u628a\u63e1\u3059\u308b\u305f\u3081\u306b\u540d\u524d\u306e\u4e00\u81f4\u304c\u4e0d\u53ef\u6b20\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u30ea\u30be\u30eb\u30d0\u306f\u5e38\u306b\u30bb\u30ec\u30af\u30bf\u95a2\u6570\u306b\u6e21\u3059\u306e\u3068\u540c\u3058\u5f15\u6570\u3092\u53d7\u3051\u53d6\u308a\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3059\u304b\u3001\u751f\u6210\u3059\u308b\u304b\u3001\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\u3057\u307e\u3059\u3002<\/p>\n<h2>@wordpress\/data\u4f7f\u7528\u6642\u306e\u30a8\u30e9\u30fc\u51e6\u7406<\/h2>\n<p><code>@wordpress\/data<\/code>\u3092\u6271\u3046\u969b\u306b\u306f\u3001\u9069\u5207\u306a<a href=\"https:\/\/kinsta.com\/jp\/blog\/errors-in-javascript\/\">\u30a8\u30e9\u30fc\u51e6\u7406<\/a>\uff08\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\uff09\u3092\u5b9f\u88c5\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u975e\u540c\u671f\u64cd\u4f5c\u3084<a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-node-js\/\">\u30d5\u30eb\u30b9\u30bf\u30c3\u30af\u306e\u30c7\u30d7\u30ed\u30a4<\/a>\u3001API\u547c\u3073\u51fa\u3057\u3092\u884c\u3046\u5834\u5408\u306f\u7279\u306b\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u975e\u540c\u671f\u64cd\u4f5c\u3092\u542b\u3080\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\u3059\u308b\u5834\u5408\u3001try-catch\u30d6\u30ed\u30c3\u30af\u3092\u4f7f\u7528\u3059\u308b\u306e\u304c\u5f97\u7b56\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const StockUpdater = () =&gt; {\n  \/\/ \u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\u6a5f\u80fd\u306e\u53d6\u5f97\n  const { updateStock, setError, clearError } = useDispatch('my-app\/stocks');\n  const handleUpdateStock = async (stockId, newData) =&gt; {\n    try {\n      \/\/ \u65e2\u5b58\u306e\u30a8\u30e9\u30fc\u3092\u6d88\u53bb\n      clearError();\n      \/\/ \u5728\u5eab\u306e\u66f4\u65b0\u3092\u8a66\u884c\n      await updateStock(stockId, newData);\n    } catch (error) {\n      \/\/ \u4f55\u304b\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001\u30a8\u30e9\u30fc\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\n      setError(error.message);\n    }\n};\n\n  return (\n    &lt;button onClick={() =&gt; handleUpdateStock('AAPL', { price: 150 })}&gt;\n      Update Stock\n    &lt;\/button&gt;\n  );\n};<\/code><\/pre>\n<p>Reducer\u306e\u5834\u5408\u306f\u3001\u30a8\u30e9\u30fc\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u51e6\u7406\u3057\u3066\u3001\u72b6\u614b\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const reducer = (state = DEFAULT_STATE, action) =&gt; {\n  switch (action.type) {\n    \/\/ ... \u305d\u306e\u4ed6\u306e\u5834\u5408\n    case 'FETCH_TODOS_ERROR':\n      return {\n      ...state,\n      error: action.error,\n      isLoading: false,\n    };\n    default:\n      return state;\n  }\n};<\/code><\/pre>\n<p>\u30bb\u30ec\u30af\u30bf\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u6f5c\u5728\u7684\u306a\u554f\u984c\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u30a8\u30e9\u30fc\u30c1\u30a7\u30c3\u30af\u3092\u542b\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30c7\u30fc\u30bf\u3092\u4f7f\u7528\u3059\u308b\u524d\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30a8\u30e9\u30fc\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const MyComponent = () =&gt; {\n  \/\/ \u30a8\u30e9\u30fc\u60c5\u5831\u3092\u542b\u3080\u8907\u6570\u306e\u72b6\u614b\u3092\u53d6\u5f97\n  const { data, isLoading, error } = useSelect((select) =&gt; ({\n    data: select('my-app\/stocks').getStockData(),\n    isLoading: select('my-app\/stocks').isLoading(),\n    error: select('my-app\/stocks').getError()\n  }));\n\n  \/\/ \u3055\u307e\u3056\u307e\u306a\u72b6\u614b\u3092\u6271\u3046\n  if (isLoading) {\n    return &lt;div&gt;Loading...&lt;\/div&gt;;\n  }\n\n  if (error) {\n    return (\n      &lt;div className=\"error-message\"&gt;\n        &lt;p&gt;Error loading stocks: {error.message}&lt;\/p&gt;\n        &lt;button onClick={retry}&gt;Try Again&lt;\/button&gt;\n      &lt;\/div&gt;\n    );\n  }\n  return (\n    &lt;div&gt;\n      {\/* \u901a\u5e38\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0 *\/}\n    &lt;\/div&gt;\n  );\n};<\/code><\/pre>\n<p><code>useSelect<\/code>\u3068<code>useDispatch<\/code>\u306f\u3001\u72ec\u81ea\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u56e0\u6570\u3068\u3057\u3066\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u521d\u671f\u8a2d\u5b9a\u6642\u306b\u30a8\u30e9\u30fc\u72b6\u614b\u3092\u4e2d\u5fc3\u306b\u7ba1\u7406\u3059\u308b\u3053\u3068\u306f\u826f\u3044\u7fd2\u6163\u3067\u3042\u308a\u3001\u30a8\u30e9\u30fc\u5883\u754c\u306f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30ec\u30d9\u30eb\u3067\u4fdd\u6301\u3059\u308b\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u307e\u3059\u3002\u307e\u305f\u3001\u8aad\u307f\u8fbc\u307f\u72b6\u614b\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u63a1\u7528\u3059\u308b\u3053\u3068\u3082\u3001\u30b3\u30fc\u30c9\u3092\u660e\u5feb\u304b\u3064\u4e00\u8cab\u6027\u306e\u3042\u308b\u3082\u306e\u306b\u4fdd\u3064\u306e\u306b\u6709\u7528\u3067\u3059\u3002<\/p>\n<h2>WordPress\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u3092\u30b5\u30a4\u30c8\u306b\u7d71\u5408\u3059\u308b\u65b9\u6cd5<\/h2>\n<p><code>@wordpress\/data<\/code>\u306b\u306f\u3001\u72b6\u614b\u7ba1\u7406\u306b\u5f79\u7acb\u3064\u8981\u7d20\u304c\u591a\u6570\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u3092\u3059\u3079\u3066\u7d71\u5408\u3059\u308b\u3053\u3068\u3092\u691c\u8a0e\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u4ee5\u4e0b\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u8ca1\u52d9\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3057\u3001\u66f4\u65b0\u3059\u308b\u682a\u5f0f\u30c6\u30a3\u30c3\u30ab\u30fc\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u6700\u521d\u306b\u3001\u30c7\u30fc\u30bf\u306e\u30b9\u30c8\u30a2\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">import { createReduxStore, register } from '@wordpress\/data';\n\nconst DEFAULT_STATE = {\n  stocks: [],\n  isLoading: false,\n  error: null,\n};\n\nconst actions = {\n  fetchStocks: () =&gt; async ({ dispatch }) =&gt; {\n  dispatch({ type: 'FETCH_STOCKS_START' });\n  try {\n    const response = await fetch('\/api\/stocks');\n    const stocks = await response.json();\n    dispatch({ type: 'RECEIVE_STOCKS', stocks });\n  } catch (error) {\n    dispatch({ type: 'FETCH_STOCKS_ERROR', error: error.message });\n    }\n  },\n};\n\nconst reducer = (state = DEFAULT_STATE, action) =&gt; {\n  switch (action.type) {\n    case 'FETCH_STOCKS_START':\n      return { ...state, isLoading: true, error: null };\n    case 'RECEIVE_STOCKS':\n      return { ...state, stocks: action.stocks, isLoading: false };\n    case 'FETCH_STOCKS_ERROR':\n      return { ...state, error: action.error, isLoading: false };\n    default:\n      return state;\n  }\n};\n\nconst selectors = {\n  getStocks: (state) =&gt; state.stocks,\n  getStocksError: (state) =&gt; state.error,\n  isStocksLoading: (state) =&gt; state.isLoading,\n};\n\nconst store = createReduxStore('my-investing-app\/stocks', {\n  reducer,\n  actions,\n  selectors,\n});\n\nregister(store);<\/code><\/pre>\n<p>\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u3067\u306f\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u3001\u30ea\u30c7\u30e5\u30fc\u30b5\u30fc\u3001\u30bb\u30ec\u30af\u30bf\u3068\u3068\u3082\u306b\u3001\u30a8\u30e9\u30fc\u3068\u8aad\u307f\u8fbc\u307f\u72b6\u614b\u3092\u542b\u3080\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u72b6\u614b\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30b9\u30c8\u30a2\u306e\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b<\/h3>\n<p>\u30b9\u30c8\u30a2\u3092\u8a2d\u5b9a\u3057\u305f\u3089\u3001\u305d\u306e\u4e2d\u306e\u60c5\u5831\u3092\u8868\u793a\u3059\u308b<a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-react-js\/\">React\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f5c\u6210<\/a>\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">import { useSelect, useDispatch } from '@wordpress\/data';\nimport { useEffect } from '@wordpress\/element';\n\nconst StockTicker = () =&gt; {\n  const stocks = useSelect((select) =&gt; select('my-investing-app\/stocks').getStocks());\n  const error = useSelect((select) =&gt; select('my-investing-app\/stocks').getStocksError());\n  const isLoading = useSelect((select) =&gt; select('my-investing-app\/stocks').isStocksLoading());\n\n  const { fetchStocks } = useDispatch('my-investing-app\/stocks');\n\n  useEffect(() =&gt; {\n    fetchStocks();\n  }, []);\n\n  if (isLoading) {\n    return &lt;p&gt;\u682a\u5f0f\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u307f\u4e2d...&lt;\/p&gt;;\n  }\n\n  if (error) {\n    return &lt;p&gt;\u30a8\u30e9\u30fc: {error}&lt;\/p&gt;;\n  }\n\n  return (\n    &lt;div className=\"stock-ticker\"&gt;\n      &lt;h2&gt;\u682a\u5f0f\u30c6\u30a3\u30c3\u30ab\u30fc&lt;\/h2&gt;\n      &lt;ul&gt;\n       {stocks.map((stock) =&gt; (\n       &lt;li key={stock.symbol}&gt;\n        {stock.symbol}: ${stock.price}\n       &lt;\/li&gt;\n       ))}\n     &lt;\/ul&gt;\n   &lt;\/div&gt;\n  );\n};<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3001\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u7ba1\u7406\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u3001<code>useSelect<\/code>\u3068<code>useDispatch<\/code>\u30d5\u30c3\u30af\uff08\u304a\u3088\u3073\u305d\u306e\u4ed6\u306e\u30d5\u30c3\u30af\uff09\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u72ec\u81ea\u306e\u30a8\u30e9\u30fc\u304a\u3088\u3073\u8aad\u307f\u8fbc\u307f\u72b6\u614b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8a2d\u5b9a\u3057\u3001\u30c6\u30a3\u30c3\u30ab\u30fc\u3092\u5b9f\u969b\u306b\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u30b3\u30fc\u30c9\u3082\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092WordPress\u306b\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<h3>WordPress\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u767b\u9332\u3059\u308b<\/h3>\n<p>WordPress\u306b\u767b\u9332\u3057\u306a\u3044\u3068\u3001\u4f5c\u6210\u3057\u305f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/create-classic-wordpress-theme\/\">Classic Themes<\/a>\u7528\u306b\u30c7\u30b6\u30a4\u30f3\u3059\u308b\u5834\u5408\u306f\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u30d6\u30ed\u30c3\u30af\u3068\u3057\u3066\u767b\u9332\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u306fBlock\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">import { registerBlockType } from '@wordpress\/blocks';\nimport { StockTicker } from '.\/components\/StockTicker';\n\nregisterBlockType('my-investing-app\/stock-ticker', {\n  title: '\u682a\u5f0f\u30c6\u30a3\u30c3\u30ab\u30fc',\n  icon: 'chart-line',\n  category: 'widgets',\n  edit: StockTicker,\n  save: () =&gt; null, \/\/ \u3053\u308c\u306f\u52d5\u7684\u306b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\n});<\/code><\/pre>\n<p>\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u306f\u3001WordPress\u5185\u3067\u30d6\u30ed\u30c3\u30af\u3092\u767b\u9332\u3059\u308b\u305f\u3081\u306e\u4e00\u822c\u7684\u306a\u30a2\u30d7\u30ed\u30fc\u30c1\u3067\u3001\u5225\u306a\u5b9f\u88c5\u3084\u8a2d\u5b9a\u306f\u4e0d\u8981\u3067\u3059\u3002<\/p>\n<h3>\u72b6\u614b\u306e\u66f4\u65b0\u3068\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u306e\u7ba1\u7406<\/h3>\n<p>\u30d6\u30ed\u30c3\u30af\u3092\u767b\u9332\u3057\u305f\u3089\u3001\u30e6\u30fc\u30b6\u30fc\u3068\u306e\u3084\u308a\u3068\u308a\u3084\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u66f4\u65b0\u3092\u51e6\u7406\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u306b\u306f\u30ab\u30b9\u30bf\u30e0HTML\u3084JavaScript\u306b\u52a0\u3048\u3066\u3001\u3044\u304f\u3064\u304b\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u5236\u5fa1\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const StockControls = () =&gt; {\n  const { addToWatchlist, removeFromWatchlist } = useDispatch('my-investing-app\/stocks');\n  return (\n    &lt;div className=\"stock-controls\"&gt;\n      &lt;button onClick={() =&gt; addToWatchlist('AAPL')}&gt;\n        Add Apple to Watchlist\n      &lt;\/button&gt;\n\n      &lt;button onClick={() =&gt; removeFromWatchlist('AAPL')}&gt;\n        \u30a6\u30a9\u30c3\u30c1\u30ea\u30b9\u30c8\u304b\u3089\u524a\u9664\n      &lt;\/button&gt;\n    &lt;\/div&gt;\n  );\n};<\/code><\/pre>\n<p>\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u66f4\u65b0\u306b\u3064\u3044\u3066\u306f\u3001React\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5185\u3067\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u3092\u8a2d\u5b9a\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">useEffect(() =&gt; {\n  const { updateStockPrice } = dispatch('my-investing-app\/stocks');\n  const interval = setInterval(() =&gt; {\n    stocks.forEach(stock =&gt; {\n      fetchStockPrice(stock.symbol)\n        .then(price =&gt; updateStockPrice(stock.symbol, price));\n    });\n  }, 60000);\n\n  return () =&gt; clearInterval(interval);\n}, [stocks]);<\/code><\/pre>\n<p>\u3053\u306e\u65b9\u6cd5\u3067\u306f\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u30b9\u30c8\u30a2\u3068\u540c\u671f\u3055\u305b\u306a\u304c\u3089\u3001\u660e\u78ba\u306a\u95a2\u4fc2\u5206\u96e2\u3092\u7dad\u6301\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<code>@wordpress\/data<\/code>\u304c\u3059\u3079\u3066\u306e\u72b6\u614b\u66f4\u65b0\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u3001\u30a2\u30d7\u30ea\u5185\u3067\u4e00\u8cab\u6027\u304c\u78ba\u4fdd\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0<\/h3>\n<p>\u6700\u5f8c\u306b\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3092\u8a2d\u5b9a\u3057\u3066\u3001\u30da\u30fc\u30b8\u8aad\u307f\u8fbc\u307f\u6642\u306b\u30b9\u30c8\u30c3\u30af\u30c7\u30fc\u30bf\u304c\u6700\u65b0\u3067\u3042\u308b\u3053\u3068\u3092\u4fdd\u8a3c\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u306f<a href=\"https:\/\/kinsta.com\/jp\/blog\/php-tutorials\/\">PHP\u306e\u77e5\u8b58<\/a>\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">function my_investing_app_render_stock_ticker($attributes, $content) {\n  \/\/ API\u304b\u3089\u6700\u65b0\u306e\u682a\u5f0f\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\n  $stocks = fetch_latest_stock_data();\n  ob_start();\n  ?&gt;\n  &lt;div class=\"stock-ticker\"&gt;\n    &lt;h2&gt;\u682a\u5f0f\u30c6\u30a3\u30c3\u30ab\u30fc&lt;\/h2&gt;\n    &lt;ul&gt;\n      &lt;?php foreach ($stocks as $stock) : ?&gt;\n        &lt;li&gt;&lt;?php echo esc_html($stock['symbol']); ?&gt;: $&lt;?php echo esc_html($stock['price']); ?&gt;&lt;\/li&gt;\n      &lt;?php endforeach; ?&gt;\n    &lt;\/ul&gt;\n  &lt;\/div&gt;\n\n  &lt;?php\n  return ob_get_clean();\n}\n\nregister_block_type('my-investing-app\/stock-ticker', array(\n  'render_callback' =&gt; 'my_investing_app_render_stock_ticker'\n));<\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u3092WordPress\u306b\u5b8c\u5168\u7d71\u5408\u3057\u3001\u521d\u671f\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u304b\u3089\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u66f4\u65b0\u3001\u30e6\u30fc\u30b6\u30fc\u3068\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u307e\u3067\u3092\u51e6\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>WordPress\u306e\u30c7\u30fc\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3042\u308b<code>@wordpress\/data<\/code>\u306f\u3001\u8907\u96d1\u3067\u306f\u3042\u308b\u3082\u306e\u306e\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u3092\u884c\u3046\u5805\u7262\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u4e3b\u306a\u6982\u5ff5\u306b\u52a0\u3048\u3066\u3001\u95a2\u6570\u3001\u6f14\u7b97\u5b50\u3001\u5f15\u6570\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u8981\u7d20\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u304c\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30c8\u30a2\u306b\u683c\u7d0d\u3055\u308c\u308b\u5fc5\u8981\u306f\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u306f\u899a\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u72b6\u614b\u3082\u30b3\u30fc\u30c9\u5185\u3067\u91cd\u8981\u306a\u5f79\u5272\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\uff08\u30c7\u30fc\u30bf\u306e\u6271 &#8230;<\/p>\n","protected":false},"author":259,"featured_media":62545,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[],"topic":[826],"class_list":["post-62544","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","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>@wordpress\/data\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u3092\u884c\u3046\u65b9\u6cd5<\/title>\n<meta name=\"description\" content=\"\u8907\u96d1\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u306f\u624b\u9593\u306e\u304b\u304b\u308b\u4f5c\u696d\u3002WordPress\u306e\u30c7\u30fc\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u306e\u72b6\u614b\u7ba1\u7406\u3092\u52b9\u7387\u5316\u3059\u308b\u65b9\u6cd5\u3092\u63a2\u308a\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-data-package\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"@wordpress\/data\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u3092\u884c\u3046\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"\u8907\u96d1\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u306f\u624b\u9593\u306e\u304b\u304b\u308b\u4f5c\u696d\u3002WordPress\u306e\u30c7\u30fc\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u306e\u72b6\u614b\u7ba1\u7406\u3092\u52b9\u7387\u5316\u3059\u308b\u65b9\u6cd5\u3092\u63a2\u308a\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/\" \/>\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-01-03T08:29:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-24T11:10:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/01\/wordpress-data-package-manage-application-state.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=\"Steve Bonisteel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"\u8907\u96d1\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u306f\u624b\u9593\u306e\u304b\u304b\u308b\u4f5c\u696d\u3002WordPress\u306e\u30c7\u30fc\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u306e\u72b6\u614b\u7ba1\u7406\u3092\u52b9\u7387\u5316\u3059\u308b\u65b9\u6cd5\u3092\u63a2\u308a\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/01\/wordpress-data-package-manage-application-state-1024x512.png\" \/>\n<meta name=\"twitter:creator\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Steve Bonisteel\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"5\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-data-package\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/\"},\"author\":{\"name\":\"Steve Bonisteel\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/d84ceff87bd64a4368a581fc8aa8bd6f\"},\"headline\":\"@wordpress\/data\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u3092\u884c\u3046\u65b9\u6cd5\",\"datePublished\":\"2025-01-03T08:29:11+00:00\",\"dateModified\":\"2026-02-24T11:10:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/\"},\"wordCount\":113,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/01\/wordpress-data-package-manage-application-state.png\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/\",\"name\":\"@wordpress\/data\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u3092\u884c\u3046\u65b9\u6cd5\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/01\/wordpress-data-package-manage-application-state.png\",\"datePublished\":\"2025-01-03T08:29:11+00:00\",\"dateModified\":\"2026-02-24T11:10:05+00:00\",\"description\":\"\u8907\u96d1\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u306f\u624b\u9593\u306e\u304b\u304b\u308b\u4f5c\u696d\u3002WordPress\u306e\u30c7\u30fc\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u306e\u72b6\u614b\u7ba1\u7406\u3092\u52b9\u7387\u5316\u3059\u308b\u65b9\u6cd5\u3092\u63a2\u308a\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/#primaryimage\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/01\/wordpress-data-package-manage-application-state.png\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/01\/wordpress-data-package-manage-application-state.png\",\"width\":1470,\"height\":735},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress\u30b5\u30a4\u30c8\u958b\u767a\",\"item\":\"https:\/\/kinsta.com\/jp\/topics\/wordpress-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"@wordpress\/data\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u3092\u884c\u3046\u65b9\u6cd5\"}]},{\"@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\/d84ceff87bd64a4368a581fc8aa8bd6f\",\"name\":\"Steve Bonisteel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0adffb3f9c86a6ec8245f8399d540823?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0adffb3f9c86a6ec8245f8399d540823?s=96&d=mm&r=g\",\"caption\":\"Steve Bonisteel\"},\"description\":\"Steve Bonisteel is a Technical Editor at Kinsta who began his writing career as a print journalist, chasing ambulances and fire trucks. He has been covering Internet-related technology since the late 1990s.\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/author\/stevebonisteel\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"@wordpress\/data\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u3092\u884c\u3046\u65b9\u6cd5","description":"\u8907\u96d1\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u306f\u624b\u9593\u306e\u304b\u304b\u308b\u4f5c\u696d\u3002WordPress\u306e\u30c7\u30fc\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u306e\u72b6\u614b\u7ba1\u7406\u3092\u52b9\u7387\u5316\u3059\u308b\u65b9\u6cd5\u3092\u63a2\u308a\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-data-package\/","og_locale":"ja_JP","og_type":"article","og_title":"@wordpress\/data\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u3092\u884c\u3046\u65b9\u6cd5","og_description":"\u8907\u96d1\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u306f\u624b\u9593\u306e\u304b\u304b\u308b\u4f5c\u696d\u3002WordPress\u306e\u30c7\u30fc\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u306e\u72b6\u614b\u7ba1\u7406\u3092\u52b9\u7387\u5316\u3059\u308b\u65b9\u6cd5\u3092\u63a2\u308a\u307e\u3059\u3002","og_url":"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2025-01-03T08:29:11+00:00","article_modified_time":"2026-02-24T11:10:05+00:00","og_image":[{"width":1470,"height":735,"url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/01\/wordpress-data-package-manage-application-state.png","type":"image\/png"}],"author":"Steve Bonisteel","twitter_card":"summary_large_image","twitter_description":"\u8907\u96d1\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u306f\u624b\u9593\u306e\u304b\u304b\u308b\u4f5c\u696d\u3002WordPress\u306e\u30c7\u30fc\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u306e\u72b6\u614b\u7ba1\u7406\u3092\u52b9\u7387\u5316\u3059\u308b\u65b9\u6cd5\u3092\u63a2\u308a\u307e\u3059\u3002","twitter_image":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/01\/wordpress-data-package-manage-application-state-1024x512.png","twitter_creator":"@Kinsta_JP","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Steve Bonisteel","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"5\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/#article","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/"},"author":{"name":"Steve Bonisteel","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/d84ceff87bd64a4368a581fc8aa8bd6f"},"headline":"@wordpress\/data\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u3092\u884c\u3046\u65b9\u6cd5","datePublished":"2025-01-03T08:29:11+00:00","dateModified":"2026-02-24T11:10:05+00:00","mainEntityOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/"},"wordCount":113,"commentCount":0,"publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/01\/wordpress-data-package-manage-application-state.png","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/","url":"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/","name":"@wordpress\/data\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u3092\u884c\u3046\u65b9\u6cd5","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/#primaryimage"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/01\/wordpress-data-package-manage-application-state.png","datePublished":"2025-01-03T08:29:11+00:00","dateModified":"2026-02-24T11:10:05+00:00","description":"\u8907\u96d1\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u306f\u624b\u9593\u306e\u304b\u304b\u308b\u4f5c\u696d\u3002WordPress\u306e\u30c7\u30fc\u30bf\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u306e\u72b6\u614b\u7ba1\u7406\u3092\u52b9\u7387\u5316\u3059\u308b\u65b9\u6cd5\u3092\u63a2\u308a\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/#primaryimage","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/01\/wordpress-data-package-manage-application-state.png","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2025\/01\/wordpress-data-package-manage-application-state.png","width":1470,"height":735},{"@type":"BreadcrumbList","@id":"https:\/\/kinsta.com\/jp\/blog\/wordpress-data-package\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"WordPress\u30b5\u30a4\u30c8\u958b\u767a","item":"https:\/\/kinsta.com\/jp\/topics\/wordpress-development\/"},{"@type":"ListItem","position":3,"name":"@wordpress\/data\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u3092\u884c\u3046\u65b9\u6cd5"}]},{"@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\/d84ceff87bd64a4368a581fc8aa8bd6f","name":"Steve Bonisteel","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0adffb3f9c86a6ec8245f8399d540823?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0adffb3f9c86a6ec8245f8399d540823?s=96&d=mm&r=g","caption":"Steve Bonisteel"},"description":"Steve Bonisteel is a Technical Editor at Kinsta who began his writing career as a print journalist, chasing ambulances and fire trucks. He has been covering Internet-related technology since the late 1990s.","url":"https:\/\/kinsta.com\/jp\/blog\/author\/stevebonisteel\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/62544","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\/259"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/comments?post=62544"}],"version-history":[{"count":9,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/62544\/revisions"}],"predecessor-version":[{"id":68432,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/62544\/revisions\/68432"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/62544\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/62544\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/62544\/translations\/pt"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/62544\/translations\/fr"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/62544\/translations\/de"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/62544\/translations\/jp"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/62544\/translations\/nl"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/62544\/translations\/es"},{"href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/62544\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media\/62545"}],"wp:attachment":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media?parent=62544"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/tags?post=62544"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/topic?post=62544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}