{"id":68867,"date":"2026-03-27T19:29:46","date_gmt":"2026-03-27T10:29:46","guid":{"rendered":"https:\/\/kinqsta.com\/jp\/?p=68867&#038;preview=true&#038;preview_id=68867"},"modified":"2026-03-30T20:26:09","modified_gmt":"2026-03-30T11:26:09","slug":"php-only-gutenberg-blocks","status":"publish","type":"post","link":"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/","title":{"rendered":"\u3010React\u4e0d\u8981\u3011PHP\u3060\u3051\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p data-start=\"41\" data-end=\"133\">\u9577\u5e74\u306b\u308f\u305f\u308a\u3001Gutenberg\u30d6\u30ed\u30c3\u30af\u306e\u958b\u767a\u3092\u7fd2\u5f97\u3059\u308b\u306b\u306f\u3001React\u3084Node.js\u3068\u3044\u3063\u305f\u6280\u8853\u3078\u306e\u6df1\u3044\u7406\u89e3\u306b\u52a0\u3048\u3001\u8907\u96d1\u306a\u30d3\u30eb\u30c9\u624b\u9806\u3084JavaScript\u30c4\u30fc\u30eb\u306e\u77e5\u8b58\u304c\u5fc5\u8981\u3067\u3057\u305f\u3002\u3057\u304b\u3057\u3001WordPress\u958b\u767a\u306e\u9032\u5316\u306b\u3088\u308a\u3001\u73fe\u5728\u3067\u306fGutenberg\u30d6\u30ed\u30c3\u30af\u3092\u5b8c\u5168\u306bPHP\u3060\u3051\u3067\u69cb\u7bc9\u30fb\u7ba1\u7406\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p data-start=\"205\" data-end=\"333\">\u3053\u308c\u306f\u7279\u306b\u3001React\u3084\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9JavaScript\uff08JS\uff09\u306e\u958b\u767a\u3092\u907f\u3051\u305f\u3044\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u5927\u304d\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002\u5b66\u7fd2\u30b3\u30b9\u30c8\u3092\u4e0b\u3052\u3001\u958b\u767a\u4f53\u9a13\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u3057\u3001\u4e0d\u8981\u306a\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u8ca0\u8377\u3092\u53d6\u308a\u9664\u304f\u3053\u3068\u3067\u3001\u3088\u308a\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<p data-start=\"335\" data-end=\"440\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u65b0\u6a5f\u80fd\u3092\u6d3b\u7528\u3057\u3001PHP\u306e\u307f\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3042\u308f\u305b\u3066\u3001\u3088\u308a\u8efd\u91cf\u3067\u9ad8\u901f\u304b\u3064\u4fdd\u5b88\u3057\u3084\u3059\u3044WordPress\u30b5\u30a4\u30c8\u306e\u4f5c\u308a\u65b9\u306b\u3064\u3044\u3066\u3082\u7406\u89e3\u3092\u6df1\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><aside role=\"note\" class=\"wp-block-kinsta-notice is-style-important\">\n            <h3>Important<\/h3>\n        <p>\u672c\u8a18\u4e8b\u3067\u7d39\u4ecb\u3059\u308bPHP\u306e\u307f\u3067\u69cb\u7bc9\u3059\u308b\u30d6\u30ed\u30c3\u30af\u306f\u73fe\u5728\u5b9f\u9a13\u7684\u306a\u6a5f\u80fd\u3067\u3042\u308a\u3001\u4eca\u5f8c\u5909\u66f4\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<strong>\u672c\u756a\u74b0\u5883\u3067\u306f\u4f7f\u7528\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044<\/strong>\u3002<\/p>\n<\/aside>\n<br \/>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc><\/p>\n<h2>PHP\u306e\u307f\u3067\u4f5c\u308b\u30d6\u30ed\u30c3\u30af\u3068\u306f\uff1f<\/h2>\n<p data-start=\"594\" data-end=\"734\">\u5f93\u6765\u3001Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u9ad8\u5ea6\u306a\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9JavaScript\u3084React\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30b9\u30ad\u30eb\u304c\u5fc5\u8981\u3067\u3057\u305f\u3002\u305d\u306e\u305f\u3081\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/what-is-react-js\/\">React<\/a>\u3084<a href=\"https:\/\/kinqsta.com\/jp\/blog\/what-is-node-js\/\">Node.js<\/a>\u306e\u77e5\u8b58\u3092\u6301\u305f\u306a\u3044\u5f93\u6765\u306eWordPress\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u306f\u3001\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u30fc\u306e\u5c0e\u5165\u306e\u30cf\u30fc\u30c9\u30eb\u3068\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p data-start=\"736\" data-end=\"879\">\u3057\u304b\u3057\u73fe\u5728\u3001\u305d\u306e\u72b6\u6cc1\u306f\u5909\u308f\u308a\u3064\u3064\u3042\u308a\u307e\u3059\u3002<a href=\"https:\/\/make.wordpress.org\/core\/2025\/10\/08\/whats-new-in-gutenberg-21-8-08-october\/\">Gutenberg 21.8<\/a>\u4ee5\u964d\u3067\u306f\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/php-benchmarks\/\">PHP<\/a>\u3060\u3051\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u767b\u9332\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9JavaScript\u3092\u6271\u308f\u306a\u3044\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u3001Node.js\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u3001\u8907\u96d1\u3055\u3092\u56de\u907f\u3067\u304d\u307e\u3059\u3002<\/p>\n<p data-start=\"881\" data-end=\"1013\">PHP\u306e\u307f\u3067\u306e\u30d6\u30ed\u30c3\u30af\u767b\u9332\u3067\u306f\u3001\u540c\u3058PHP\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30a8\u30c7\u30a3\u30bf\u30fc\u3068\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u4e21\u65b9\u3067\u30d6\u30ed\u30c3\u30af\u3092\u767b\u9332\u30fb\u8868\u793a\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30cf\u30a4\u30d6\u30ea\u30c3\u30c9\u30c6\u30fc\u30de\u3084\u5f93\u6765\u306ePHP\u95a2\u6570\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/wordpress-shortcodes\/\">\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9<\/a>\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u3067\u3082\u3001\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u30fc\u306e\u5c0e\u5165\u3068\u958b\u767a\u304c\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p data-start=\"1015\" data-end=\"1067\">\u3055\u3089\u306b\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u306f\u3001\u4ee5\u4e0b\u306eGitHub\u306ePR\u3082\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul data-start=\"1069\" data-end=\"1374\">\n<li data-section-id=\"1g95cds\" data-start=\"1069\" data-end=\"1159\"><a href=\"https:\/\/github.com\/WordPress\/gutenberg\/pull\/71794\">PHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\u306e\u767b\u9332\u3092\u53ef\u80fd\u306b\u3059\u308bPR<\/a>\uff1a\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u306e\u81ea\u52d5\u30d6\u30ed\u30c3\u30af\u767b\u9332\u3092\u5b9f\u88c5\u3057\u3001\u00a0<code>auto_ssr<\/code>\u30b5\u30dd\u30fc\u30c8\u3092<code>auto_register<\/code>\u3078\u3068\u540d\u79f0\u5909\u66f4<\/li>\n<li data-section-id=\"5ftngd\" data-start=\"1160\" data-end=\"1274\"><a href=\"https:\/\/github.com\/WordPress\/gutenberg\/pull\/73556\">PHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\uff1aPHP\u767b\u9332\u304b\u3089\u3059\u3079\u3066\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3078\u6e21\u3059<\/a>\uff1a<code>auto_register<\/code>\u306b\u5bfe\u5fdc\u3057\u305fPHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\u3067\u3001\u3059\u3079\u3066\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u3092PHP\u767b\u9332\u304b\u3089\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3078\u6e21\u305b\u308b\u3088\u3046\u306b\u3057\u305f\u5909\u66f4<\/li>\n<li data-section-id=\"1b44j13\" data-start=\"1275\" data-end=\"1374\"><a href=\"https:\/\/github.com\/WordPress\/gutenberg\/pull\/74102\">PHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\uff1a\u5c5e\u6027\u304b\u3089\u30a4\u30f3\u30b9\u30da\u30af\u30bf\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u751f\u6210<\/a>\uff1a\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u5c5e\u6027\u306b\u57fa\u3065\u304d\u3001UI\uff08Inspector Controls\uff09\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\u6a5f\u80fd\u3092\u8ffd\u52a0<\/li>\n<\/ul>\n<h2>PHP\u306e\u307f\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/h2>\n<p data-start=\"57\" data-end=\"268\">\u30d6\u30ed\u30c3\u30af\u304c\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u307f\u3067\u767b\u9332\u3055\u308c\u3001JS\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u305b\u305a\u3001\u304b\u3064\u65b0\u3057\u3044 <code data-start=\"93\" data-end=\"108\">auto_register<\/code> \u30b5\u30dd\u30fc\u30c8\u30d5\u30e9\u30b0\u304c <code data-start=\"118\" data-end=\"124\">true<\/code>\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u30a8\u30c7\u30a3\u30bf\u30fc\u306f\u81ea\u52d5\u7684\u306b <code data-start=\"147\" data-end=\"165\">ServerSideRender<\/code>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u3067\u30d6\u30ed\u30c3\u30af\u3092\u767b\u9332\u3057\u3001\u30d6\u30ed\u30c3\u30af\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30d6\u30ed\u30c3\u30af\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306f\u30a8\u30c7\u30a3\u30bf\u30fc\u3068\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u4e21\u65b9\u3067\u3001PHP\u30b3\u30fc\u30c9\u304b\u3089\u76f4\u63a5\u751f\u6210\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<aside role=\"note\" class=\"wp-block-kinsta-notice is-style-important\">\n            <h3>Important<\/h3>\n        <p>\u3053\u306e\u8a18\u4e8b\u3067\u3054\u7d39\u4ecb\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u306f\u3001\u958b\u767a\u7528\u30b5\u30a4\u30c8\u306b <a href=\"https:\/\/make.wordpress.org\/core\/2025\/12\/17\/gutenberg-22-3-december-17\/\">Gutenberg 22.3<\/a>\u4ee5\u964d\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306b\u306e\u307f\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<\/aside>\n\n<p>\u4ee5\u4e0b\u306fPHP\u306e\u307f\u306e\u65b9\u6cd5\u3067\u30d6\u30ed\u30c3\u30af\u3092\u767b\u9332\u3059\u308b\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30fc\u30c9\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-php\">\/**\n * Render callback (frontend and editor)\n *\/\nfunction my_php_only_block_render( $attributes ) {\n\treturn '&lt;div&gt;\n\t\t&lt;h3&gt;\ud83d\ude80 PHP-only Block&lt;\/h3&gt;\n\t\t&lt;p&gt;This block was created with only PHP!&lt;\/p&gt;\n\t&lt;\/div&gt;';\n}\n\n\/**\n * Register the block on the 'init' hook.\n *\/\nadd_action( 'init', function() {\n\tregister_block_type( 'my-plugin\/php-only-test-block', array(\n\t\t'title'           =&gt; 'My PHP-only Block',\n\t\t'icon'            =&gt; 'welcome-learn-more',\n\t\t'category'        =&gt; 'text',\n\t\t'render_callback' =&gt; 'my_php_only_block_render',\n\t\t'supports'        =&gt; array(\n\t\t\t\/\/ Automatically registers the block in the Editor JS (previously auto_ssr)\n\t\t\t'auto_register' =&gt; true, \n\t\t),\n\t) );\n});<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30e1\u30a4\u30f3\u30d5\u30a1\u30a4\u30eb\u306b\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3059\u308b\u3053\u3068\u3067\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u6709\u52b9\u5316\u3059\u308b\u3068\u3001\u30d6\u30ed\u30c3\u30af\u30a4\u30f3\u30b5\u30fc\u30bf\u30fc\u5185\u306b\u300cMy PHP-Only Block\u300d\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<figure id=\"attachment_206054\" aria-describedby=\"caption-attachment-206054\" style=\"width: 1644px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-206054 size-full\" src=\"https:\/\/kinqsta.com\/wp-content\/uploads\/2026\/02\/basic-php-only-block.png\" alt=\"\u30b7\u30f3\u30d7\u30eb\u306aPHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\u4f8b\" width=\"1644\" height=\"656\"><figcaption id=\"caption-attachment-206054\" class=\"wp-caption-text\">\u30b7\u30f3\u30d7\u30eb\u306aPHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\u4f8b<\/figcaption><\/figure>\n<p><a href=\"https:\/\/kinqsta.com\/blog\/dynamic-blocks\/#register-the-block-on-the-server\"><code>register_block_type<\/code>\u95a2\u6570<\/a>\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u30d6\u30ed\u30c3\u30af\u30bf\u30a4\u30d7\u3092\u767b\u9332\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002\u3053\u306e\u95a2\u6570\u306b\u306f<a href=\"https:\/\/github.com\/WordPress\/gutenberg\/pull\/73556\">\u65b0\u305f\u306b<code>auto_register<\/code>\u30b5\u30dd\u30fc\u30c8<\/a>\u304c\u8ffd\u52a0\u3055\u308c\u3066\u304a\u308a\u3001Gutenberg\u306b\u5bfe\u3057\u3066PHP\u3067\u767b\u9332\u3055\u308c\u305f\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u3078\u6e21\u3059\u3088\u3046\u6307\u793a\u3057\u307e\u3059\u3002<\/p>\n<p data-start=\"163\" data-end=\"181\">\u3053\u306e\u95a2\u6570\u306f2\u3064\u306e\u5f15\u6570\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002<\/p>\n<ul data-start=\"183\" data-end=\"400\">\n<li data-section-id=\"1u3q5ag\" data-start=\"183\" data-end=\"249\">\u540d\u524d\u7a7a\u9593\u3092\u542b\u3080\u30d6\u30ed\u30c3\u30af\u30bf\u30a4\u30d7\u306e\u540d\u524d\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001\u30d6\u30ed\u30c3\u30af\u540d\u306f<code>my-plugin\/php-only-test-block<\/code>\u3002<\/li>\n<li data-section-id=\"iprc39\" data-start=\"250\" data-end=\"400\">\u30d6\u30ed\u30c3\u30af\u30bf\u30a4\u30d7\u306b\u95a2\u3059\u308b\u5f15\u6570\u306e\u914d\u5217\u3002\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001<code>title<\/code>\u3001<code>icon<\/code>\u3001<code>category<\/code>\u3001<code>render_callback<\/code>\u3001<code>supports<\/code>\u3092\u8a2d\u5b9a\u3002\u306a\u304a\u3001PHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\u30bf\u30a4\u30d7\u3067\u306f\u3001<code>supports<\/code>\u914d\u5217\u306b<code>'auto_register' =&gt; true<\/code>\u3092\u542b\u3081\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/li>\n<\/ul>\n<p>\u30ab\u30b9\u30bf\u30e0\u30d6\u30ed\u30c3\u30af\u30bf\u30a4\u30d7\u306e\u4f5c\u6210\u3092\u7c21\u7d20\u5316\u3057\u3001\u30cf\u30a4\u30d6\u30ea\u30c3\u30c9\u30c6\u30fc\u30de\u3078\u306e\u7d71\u5408\u3092\u5bb9\u6613\u306b\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001PHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\u306f\u5f93\u6765\u306ePHP\u95a2\u6570\u3084\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306e\u30e9\u30c3\u30d1\u30fc\u3068\u3057\u3066\u3082\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u3055\u3089\u306b\u3001PHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30ab\u30b9\u30bf\u30e0\u7d71\u5408\u3084\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u6a5f\u80fd\u306b\u95a2\u3059\u308b\u65b0\u305f\u306a\u53ef\u80fd\u6027\u304c\u5e83\u304c\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/WordPress\/gutenberg\/issues\/71792\">H\u00e9ctor Priethor\u6c0f<\/a>\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8ff0\u3079\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote><p>\u7d14\u7c8b\u306aPHP\u306b\u3088\u308b\u767b\u9332\u30e2\u30c7\u30eb\u306f\u3001\u30d6\u30ed\u30c3\u30af\u958b\u767a\u306b\u5fc5\u8981\u306a\u6700\u4f4e\u8981\u4ef6\u3092\u7c21\u7d20\u5316\u3057\u3001\u3088\u308a\u5e45\u5e83\u3044\u958b\u767a\u8005\u304c\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3068\u3068\u3082\u306b\u3001\u9ad8\u5ea6\u306aJavaScript\u306b\u4f9d\u5b58\u3057\u306a\u3044\u5f62\u3067\u30d6\u30ed\u30c3\u30af\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u306e\u6210\u9577\u3092\u4fc3\u9032\u3057\u307e\u3059<\/p><\/blockquote>\n<h2>\u5c5e\u6027\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30ed\u30c3\u30af\u8a2d\u5b9aUI\u3092\u69cb\u7bc9\u3059\u308b<\/h2>\n<p data-start=\"54\" data-end=\"186\"><a href=\"https:\/\/github.com\/WordPress\/gutenberg\/pull\/74102\">PR 74102<\/a>\u306b\u3088\u308a\u3001\u30d6\u30ed\u30c3\u30af\u5c5e\u6027\u306e\u5b9a\u7fa9\u304b\u3089\u30a4\u30f3\u30b9\u30da\u30af\u30bf\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u81ea\u52d5\u751f\u6210\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001PHP\u306e\u307f\u3067\u69cb\u7bc9\u3057\u305f\u30d6\u30ed\u30c3\u30af\u3067\u3082\u3001JavaScript\u3067\u767b\u9332\u3055\u308c\u305f\u901a\u5e38\u306eGutenberg\u30d6\u30ed\u30c3\u30af\u3068\u540c\u69d8\u306b\u3001\u5916\u89b3\u3084\u6a5f\u80fd\u3092\u8a2d\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p data-start=\"188\" data-end=\"262\">\u3053\u308c\u307e\u3067\u306f\u3001React\u3067<code>edit.js<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u624b\u52d5\u3067\u4f5c\u6210\u3057\u3001React\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u3055\u307e\u3056\u307e\u306a\u8a2d\u5b9a\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u5b9a\u7fa9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p data-start=\"264\" data-end=\"328\">\u73fe\u5728\u3067\u306f\u3001Gutenberg\u304c\u5c5e\u6027\u306e\u5b9a\u7fa9\u3092\u8aad\u307f\u53d6\u308a\u3001WordPress\u30a8\u30c7\u30a3\u30bf\u30fc\u5185\u306b\u5bfe\u5fdc\u3059\u308b\u5165\u529b\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u81ea\u52d5\u7684\u306b\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n<p data-start=\"330\" data-end=\"388\">\u3053\u306e\u4ed5\u7d44\u307f\u3067\u306f\u3001<code>attributes<\/code>\u914d\u5217\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30c7\u30fc\u30bf\u578b\u304c<code>DataForm<\/code>\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u5b9a\u7fa9\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li data-section-id=\"jxncxg\" data-start=\"390\" data-end=\"430\"><code>'type' =&gt; 'string'<\/code>\uff1a\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u751f\u6210<\/li>\n<li data-section-id=\"1fhxer0\" data-start=\"431\" data-end=\"469\"><code>'type' =&gt; 'number'<\/code>\uff1a\u6570\u5024\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u751f\u6210<\/li>\n<li><code>'type' =&gt; 'integer'<\/code>\uff1a\u6574\u6570\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u751f\u6210<\/li>\n<li><code>'type' =&gt; 'boolean'<\/code>\uff1a\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u751f\u6210<\/li>\n<li data-section-id=\"vojjp2\" data-start=\"551\" data-end=\"618\"><code>type' =&gt; 'string'<\/code>\u3068<code>'enum' =&gt; array()<\/code>\u306e\u7d44\u307f\u5408\u308f\u305b\uff1a\u30bb\u30ec\u30af\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u751f\u6210<\/li>\n<\/ul>\n<p data-start=\"620\" data-end=\"732\">\u305f\u3060\u3057\u3001\u4f7f\u7528\u3067\u304d\u308b\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u7a2e\u985e\u306f\u9650\u3089\u308c\u3066\u3044\u307e\u3059\u3002<code>RichText<\/code>\u3001<code>RangeControl<\/code>\u3001<code>ToggleControl<\/code>\u306a\u3069\u306e\u7279\u5b9a\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u5f15\u304d\u7d9a\u304dJS\/React\u306b\u3088\u308b\u5b9f\u88c5\u3092\u9078\u629e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p data-start=\"734\" data-end=\"835\">\u3068\u306f\u3044\u3048\u3001\u3053\u306e\u6a5f\u80fd\u8ffd\u52a0\u306b\u306f\u5927\u304d\u306a\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u53c2\u5165\u306e\u30cf\u30fc\u30c9\u30eb\u304c\u3055\u3089\u306b\u4e0b\u304c\u308a\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u7de8\u96c6\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6301\u3064\u30ab\u30b9\u30bf\u30e0\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u3001React\u3084Webpack\u3001NPM\u3092\u5b66\u3076\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p data-start=\"837\" data-end=\"883\">\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001\u524d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u7d39\u4ecb\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u30d6\u30ed\u30c3\u30af\u306b\u3044\u304f\u3064\u304b\u306e\u5c5e\u6027\u3092\u8ffd\u52a0\u3057\u3066\u62e1\u5f35\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">\/**\n * 1. Define the block's HTML output.\n *\/\nfunction my_php_only_block_render( $attributes ) {\n\t\/\/ Extract attributes\n\t$title   = esc_html( $attributes['blockTitle'] );\n\t$count   = intval( $attributes['itemCount'] );\n\t$enabled = $attributes['isEnabled']; \/\/ Boolean from the ToggleControl\n\t$size    = esc_attr( $attributes['displaySize'] );\n\t\n\t\/\/ Start building the output\n\t$output = sprintf( '&lt;div class=\"my-php-block\" style=\"font-size: %s; border: 1px solid #ccc; padding: 15px;\"&gt;', \n\t\t$size === 'large' ? '20px' : ($size === 'small' ? '12px' : '16px') \n\t);\n\t\n\t$output .= sprintf( '&lt;h3&gt;\ud83d\ude80 %s&lt;\/h3&gt;', $title );\n\t\n\t\/\/ If the toggle is ON, show the list. If OFF, show a fallback message.\n\tif ( $enabled ) {\n\t\t$output .= '&lt;ul&gt;';\n\t\tfor ( $i = 1; $i &lt;= $count; $i++ ) {\n\t\t\t$output .= sprintf( '&lt;li&gt;Item %d&lt;\/li&gt;', $i );\n\t\t}\n\t\t$output .= '&lt;\/ul&gt;';\n\t} else {\n\t\t$output .= '&lt;p&gt;&lt;em&gt;The list is currently disabled.&lt;\/em&gt;&lt;\/p&gt;';\n\t}\n\t\n\t$output .= '&lt;\/div&gt;';\n\treturn $output;\n}\n\n\/**\n * 2. Register the block on 'init'.\n *\/\nadd_action( 'init', function() {\n\tregister_block_type( 'my-plugin\/php-only-test-block', array(\n\t\t'title'           =&gt; 'My PHP-only Block',\n\t\t'icon'            =&gt; 'welcome-learn-more',\n\t\t'category'        =&gt; 'text',\n\t\t'render_callback' =&gt; 'my_php_only_block_render',\n\n\t\t\/\/ Attributes used to generate the Inspector UI\n\t\t'attributes'      =&gt; array(\n\t\t\t'blockTitle'  =&gt; array(\n\t\t\t\t'type'    =&gt; 'string',\n\t\t\t\t'default' =&gt; 'PHP-only Block',\n\t\t\t),\n\t\t\t'itemCount'   =&gt; array(\n\t\t\t\t'type'    =&gt; 'integer',\n\t\t\t\t'default' =&gt; 3,\n\t\t\t),\n\t\t\t'isEnabled'   =&gt; array(\n\t\t\t\t'type'    =&gt; 'boolean',\n\t\t\t\t'default' =&gt; true,\n\t\t\t),\n\t\t\t'displaySize' =&gt; array(\n\t\t\t\t'type'    =&gt; 'string',\n\t\t\t\t'enum'    =&gt; array( 'small', 'medium', 'large' ),\n\t\t\t\t'default' =&gt; 'medium',\n\t\t\t),\n\t\t),\n\n\t\t'supports'        =&gt; array(\n\t\t\t'auto_register' =&gt; true, \n\t\t),\n\t) );\n});<\/code><\/pre>\n<p data-start=\"24\" data-end=\"181\">\u3053\u306e\u30b3\u30fc\u30c9\u3092\u4e00\u898b\u3059\u308b\u3068\u3001\u65b0\u3057\u3044API\u3092\u4f7f\u7528\u3057\u3066\u3001\u3059\u3079\u3066\u306e\u8a2d\u5b9a\u3092\u542b\u3080\u30ab\u30b9\u30bf\u30e0\u30d6\u30ed\u30c3\u30af\u3092\u3044\u304b\u306b\u7c21\u5358\u306b\u767b\u9332\u3067\u304d\u308b\u304b\u304c\u5206\u304b\u308a\u307e\u3059\u3002\u5c5e\u6027\uff08attributes\uff09\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u5165\u529b\u3057\u305f\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001UI\u306e\u69cb\u9020\uff08\u30b9\u30ad\u30fc\u30de\uff09\u3092\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u306b\u3082\u4f7f\u7528\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u51e6\u7406\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul data-start=\"183\" data-end=\"490\">\n<li data-section-id=\"17bt233\" data-start=\"183\" data-end=\"255\"><code>register_block_type<\/code>\u95a2\u6570\u306f\u3001\u30d6\u30ed\u30c3\u30af\u30bf\u30a4\u30d7<code>my-plugin\/php-only-test-block<\/code>\u3092\u767b\u9332<\/li>\n<li data-section-id=\"m2t4i5\" data-start=\"256\" data-end=\"341\">\u95a2\u6570\u306b\u6e21\u3055\u308c\u308b\u7b2c2\u5f15\u6570\u306f\u914d\u5217\u3067\u3001<code>title<\/code>\u3001<code>icon<\/code>\u3001<code>category<\/code>\u3001<code>render_callback<\/code>\u3001<code>attributes<\/code>\u3001<code>supports<\/code>\u304c\u542b\u307e\u308c\u308b<\/li>\n<li><code>attributes<\/code>\u914d\u5217\u306b\u306f\u3001\u30d6\u30ed\u30c3\u30af\u306e\u5c5e\u6027\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001<code>blockTitle<\/code>\u3001<code>itemCount<\/code>\u3001<code>isEnabled<\/code>\u3001<code>displaySize<\/code>\u304c\u542b\u307e\u308c\u308b<\/li>\n<li data-section-id=\"1tp7t7j\" data-start=\"437\" data-end=\"490\"><code>'auto_register' =&gt; true<\/code>\u306b\u3088\u308a\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u306e\u81ea\u52d5\u767b\u9332\u304c\u6709\u52b9\u306b\u306a\u308b<\/li>\n<\/ul>\n<p data-start=\"492\" data-end=\"538\">\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570<code>my_php_only_block_render<\/code>\u306e\u51e6\u7406\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ol data-start=\"540\" data-end=\"645\">\n<li data-section-id=\"1oe971y\" data-start=\"540\" data-end=\"620\">\u95a2\u6570\u306f<code>$attributes<\/code>\u914d\u5217\u304b\u3089\u5c5e\u6027\u5024\u3092\u53d6\u5f97\u3057\u3001\u305d\u308c\u305e\u308c<code>$title<\/code>\u3001<code>$count<\/code>\u3001\u00a0<code>$enabled<\/code>\u3001<code>$size<\/code>\u306e\u5404\u5909\u6570\u306b\u4ee3\u5165<\/li>\n<li data-section-id=\"uwsudg\" data-start=\"621\" data-end=\"645\">\u30d6\u30ed\u30c3\u30af\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u751f\u6210<\/li>\n<\/ol>\n<p data-start=\"647\" data-end=\"664\">\u4ee5\u4e0b\u306f\u753b\u9762\u4e0a\u3067\u306e\u8868\u793a\u7d50\u679c\u3067\u3059\u3002<\/p>\n<figure id=\"attachment_206110\" aria-describedby=\"caption-attachment-206110\" style=\"width: 2074px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-206110\" src=\"https:\/\/kinqsta.com\/wp-content\/uploads\/2026\/02\/php-only-block-settings.png\" alt=\"A PHP-only block with block settings\" width=\"2074\" height=\"1102\"><figcaption id=\"caption-attachment-206110\" class=\"wp-caption-text\">A PHP-only block with block settings<\/figcaption><\/figure>\n<h2>PHP\u306e\u307f\u3092\u4f7f\u3063\u305f\u30d6\u30ed\u30c3\u30af\u306e\u5b9f\u8df5\u4f8b<\/h2>\n<p data-start=\"50\" data-end=\"147\">JavaScript\u304c\u4f9d\u7136\u3068\u3057\u3066\u5fc5\u8981\u3068\u306a\u308b\u30b1\u30fc\u30b9\u3082\u591a\u304f\u3042\u308a\u307e\u3059\u304c\u3001PHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\u3067\u3082\u3001\u7279\u306b\u30d6\u30ed\u30c3\u30af\u30d7\u30ed\u30d1\u30c6\u30a3\uff08block props\uff09\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u3059\u3067\u306b\u591a\u304f\u306e\u3053\u3068\u304c\u5b9f\u73fe\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p data-start=\"149\" data-end=\"364\">\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001<a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_block_wrapper_attributes\/\" target=\"_blank\" rel=\"noopener noreferrer\"><code>get_block_wrapper_attributes()<\/code>\u95a2\u6570<\/a>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u306f\u3001\u73fe\u5728\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u3066\u3044\u308b\u30d6\u30ed\u30c3\u30af\u306b\u9069\u7528\u3055\u308c\u308b\u5c5e\u6027\u306e\u6587\u5b57\u5217\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u30d6\u30ed\u30c3\u30af\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u8a2d\u5b9a\u3057\u305f\u8272\u3001\u30dc\u30fc\u30c0\u30fc\u3001\u30b7\u30e3\u30c9\u30a6\u3092\u81ea\u52d5\u7684\u306b\u53d7\u3051\u53d6\u308a\u3001\u305d\u308c\u3089\u306b\u5bfe\u5fdc\u3059\u308b\u30b9\u30bf\u30a4\u30eb\u3092\u30e1\u30a4\u30f3\u30b3\u30f3\u30c6\u30ca\u306b\u9069\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001React\u30d9\u30fc\u30b9\u306e\u30d6\u30ed\u30c3\u30af\u3068\u540c\u69d8\u306b\u3001Gutenberg\u306e\u6a19\u6e96\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u30d6\u30ed\u30c3\u30af\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p data-start=\"366\" data-end=\"466\">\u5b9f\u969b\u306e\u52d5\u4f5c\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u30d1\u30bd\u30b3\u30f3\u4e0a\u306b<code>smart-pricing-widget<\/code>\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u3001\u4ee5\u4e0b\u306eCSS\u30b3\u30fc\u30c9\u3092\u542b\u3080<code>style.css<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-css\">\/* style.css *\/\n.pricing-card {\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\ttext-align: center;\n\tbox-sizing: border-box;\n}\n\n.pricing-card h3 {\n\tmargin: 0;\n\tfont-size: 1.5rem;\n}\n\n.pricing-card .price-value {\n\tfont-size: 3.5rem;\n\tfont-weight: 800;\n\tmargin: 15px 0;\n}\n\n.pricing-card ul {\n\tlist-style: none;\n\tpadding: 25px 0;\n\tmargin: 20px 0;\n\twidth: 100%;\n\tborder-top: 1px solid rgba(128,128,128,0.3);\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 12px;\n}\n\n.pricing-card li {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgap: 10px;\n}\n\n.pricing-card .cta-button {\n\tmargin-top: auto;\n\tpadding: 15px 25px;\n\tborder-radius: 8px;\n\ttext-decoration: none;\n\tfont-weight: bold;\n\ttransition: opacity 0.2s;\n}\n\n.pricing-card .cta-button:hover {\n\topacity: 0.8;\n}\n\n\/* Theme Variations *\/\n.pricing-card.theme-light { background-color: #ffffff; color: #000000; }\n.pricing-card.theme-light .cta-button { background-color: #21759b; color: #ffffff; }\n\n.pricing-card.theme-dark { background-color: #1a1a1a; color: #ffffff; }\n.pricing-card.theme-dark .cta-button { background-color: #ffffff; color: #1a1a1a; }\n\n.pricing-card.theme-blue { background-color: #21759b; color: #ffffff; }\n.pricing-card.theme-blue .cta-button { background-color: #000000; color: #ffffff; }\n\n\/* Utility Classes *\/\n.pricing-card .is-full-width {\n\twidth: 100%;\n\tdisplay: block;\n\talign-self: stretch;\n}<\/code><\/pre>\n<p data-start=\"19\" data-end=\"71\">\u3053\u306e\u30b3\u30fc\u30c9\u306f\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u30d6\u30ed\u30c3\u30af\u7528\u306e\u30b7\u30f3\u30d7\u30eb\u306a\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3067\u3042\u308b\u305f\u3081\u3001\u3053\u3053\u3067\u306f\u8a73\u3057\u3044\u8aac\u660e\u306f\u5272\u611b\u3057\u307e\u3059\u3002<\/p>\n<p data-start=\"73\" data-end=\"146\">\u6b21\u306b\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30e1\u30a4\u30f3\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001<code>smart-pricing-widget.php<\/code>\u3068\u3044\u3046\u540d\u524d\u3092\u4ed8\u3051\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code class=\"language-php\">&lt;?php\n\/**\n * Plugin Name: Smart Pricing Widget\n * Plugin URI:  https:\/\/example.com\/\n * Description: PHP-only Pricing Table block\n * Version:     1.2.0\n * Author:      Your Name\n * Text Domain: smart-pricing-widget\n *\/\n\nif ( ! defined( 'ABSPATH' ) ) exit;\n\n\/**\n * Render callback\n *\/\nfunction render_smart_pricing_block( $attributes ) {\n\t$plan_name = esc_html( $attributes['planName'] );\n\t$price     = intval( $attributes['price'] );\n\t$theme     = $attributes['blockTheme'];\n\t$btn_text  = esc_html( $attributes['buttonText'] );\n\t$btn_size  = $attributes['buttonSize'];\n\n\t$features_raw = $attributes['featuresList'];\n\t$features_array = array_filter( array_map( 'trim', explode( ',', $features_raw ) ) );\n\n\t$wrapper_attributes = wp_kses_data( get_block_wrapper_attributes( array(\n\t\t'class' =&gt; \"pricing-card theme-{$theme}\",\n\t) ) );\n\n\t$output = sprintf( '&lt;div %s&gt;', $wrapper_attributes );\n\t$output .= sprintf( '&lt;h3&gt;%s&lt;\/h3&gt;', $plan_name );\n\t$output .= sprintf( '&lt;div class=\"price-value\"&gt;\u20ac%d&lt;\/div&gt;', $price );\n\n\tif ( ! empty( $features_array ) ) {\n\t\t$output .= '&lt;ul&gt;';\n\t\tforeach ( $features_array as $feature ) {\n\t\t\t$is_checked = strpos( $feature, '+' ) === 0;\n\t\t\t$clean_text = esc_html( ltrim( $feature, '+- ' ) );\n\t\t\t$icon       = $is_checked ? '\u2705' : '\u274c';\n\t\t\t$style      = $is_checked ? '' : 'style=\"opacity: 0.6;\"';\n\t\t\t\n\t\t\t$output .= sprintf( '&lt;li %s&gt;&lt;span&gt;%s&lt;\/span&gt; %s&lt;\/li&gt;', $style, $icon, $clean_text );\n\t\t}\n\t\t$output .= '&lt;\/ul&gt;';\n\t}\n\n\t$btn_class = 'cta-button' . ( $btn_size === 'full' ? ' is-full-width' : '' );\n\t$output .= sprintf( '&lt;a href=\"#\" class=\"%s\"&gt;%s&lt;\/a&gt;', esc_attr( $btn_class ), $btn_text );\n\t$output .= '&lt;\/div&gt;';\n\n\treturn $output;\n}\n\n\/**\n * Register Assets and Block\n *\/\nadd_action( 'init', function() {\n\t\/\/ 1. Register the CSS file\n\twp_register_style(\n\t\t'smart-pricing-style',\n\t\tplugins_url( 'style.css', __FILE__ ),\n\t\tarray(),\n\t\t'1.2.0'\n\t);\n\n\t\/\/ 2. Register the Block\n\tregister_block_type( 'tutorial\/smart-pricing', array(\n\t\t'api_version'     =&gt; 3,\n\t\t'title'           =&gt; 'Pricing Card',\n\t\t'icon'            =&gt; 'cart',\n\t\t'category'        =&gt; 'widgets',\n\t\t'render_callback' =&gt; 'render_smart_pricing_block',\n\t\t\/\/ Link the registered style handle here\n\t\t'style'           =&gt; 'smart-pricing-style',\n\t\t'attributes'      =&gt; array(\n\t\t\t'planName'     =&gt; array( 'type' =&gt; 'string', 'default' =&gt; 'Professional' ),\n\t\t\t'price'        =&gt; array( 'type' =&gt; 'integer', 'default' =&gt; 49 ),\n\t\t\t'buttonText'   =&gt; array( 'type' =&gt; 'string', 'default' =&gt; 'Choose Plan' ),\n\t\t\t'buttonSize'   =&gt; array( 'type' =&gt; 'string', 'enum' =&gt; array( 'auto', 'full' ), 'default' =&gt; 'auto' ),\n\t\t\t'blockTheme'   =&gt; array( 'type' =&gt; 'string', 'enum' =&gt; array( 'light', 'dark', 'blue' ), 'default' =&gt; 'light' ),\n\t\t\t'featuresList' =&gt; array( 'type' =&gt; 'string', 'default' =&gt; \"+ Support, + Updates, - Domain\" ),\n\t\t),\n\t\t'supports'        =&gt; array(\n\t\t\t'auto_register' =&gt; true,\n\t\t\t'color'         =&gt; array( 'background' =&gt; true, 'text' =&gt; true ),\n\t\t\t'spacing'       =&gt; array( 'margin' =&gt; true, 'padding' =&gt; true ),\n\t\t\t'typography'    =&gt; array( 'fontSize' =&gt; true ),\n\t\t\t'shadow'        =&gt; true,\n\t\t\t'__experimentalBorder' =&gt; array( 'color' =&gt; true, 'radius' =&gt; true, 'style' =&gt; true, 'width' =&gt; true ),\n\t\t\t'border'        =&gt; array( 'color' =&gt; true, 'radius' =&gt; true, 'style' =&gt; true, 'width' =&gt; true ),\n\t\t),\n\t) );\n});<\/code><\/pre>\n<p data-start=\"27\" data-end=\"107\">\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u306f2\u3064\u306e\u95a2\u6570\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<code>register_block_type()<\/code>\u95a2\u6570\u306f\u3001\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4e2d\u6838\u3068\u306a\u308b\u3082\u306e\u3067\u3059\u3002\u4e3b\u306a\u8981\u7d20\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul data-start=\"109\" data-end=\"689\">\n<li data-section-id=\"1wrbx5i\" data-start=\"109\" data-end=\"160\">\u7b2c1\u5f15\u6570\u306f\u3001\u540d\u524d\u7a7a\u9593\u3092\u542b\u3080\u30d6\u30ed\u30c3\u30af\u8b58\u5225\u5b50\uff08<code>tutorial\/smart-pricing<\/code>\uff09\u3002<\/li>\n<li data-section-id=\"1e41ngy\" data-start=\"161\" data-end=\"267\">\u7b2c2\u5f15\u6570\u306f\u5f15\u6570\u306e\u914d\u5217\u3002\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001API\u30d0\u30fc\u30b8\u30e7\u30f3\u3001title\u3001icon\u3001category\u3001render callback\u3001style\u3001attributes\u3001<a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/block-api\/block-supports\/\">supports<\/a>\u3092\u8a2d\u5b9a\u3002<\/li>\n<li data-section-id=\"10zkhl8\" data-start=\"268\" data-end=\"499\">\u914d\u5217\u5185\u306eattributes\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8ffd\u52a0\u3057\u305f\u308a\u30d6\u30ed\u30c3\u30af\u3092\u8a2d\u5b9a\u3057\u305f\u308a\u3059\u308b\u969b\u306b\u4f7f\u7528\u3059\u308b\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u751f\u6210\u3002type\u8981\u7d20\u306f\u3001\u30d6\u30ed\u30c3\u30af\u30a4\u30f3\u30b9\u30da\u30af\u30bf\u30fc\u306b\u8ffd\u52a0\u3055\u308c\u308b\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u7a2e\u985e\u3092\u6307\u5b9a\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\uff08<code>'type' =&gt; 'string'<\/code>\uff09\u3001\u6574\u6570\uff08<code>'type' =&gt; 'integer'<\/code>\uff09\u3001\u304a\u3088\u3073\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\uff08<code>'type' =&gt; 'string', 'enum' =&gt; array()<\/code>\uff09\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u3002<\/li>\n<li data-section-id=\"midbjq\" data-start=\"500\" data-end=\"689\">supports\u914d\u5217\u306e\u9805\u76ee\u306f\u3001\u30d6\u30ed\u30c3\u30af\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u53ef\u80fd\u306b\u3059\u308b\u6a5f\u80fd\u3092\u8ffd\u52a0\u3002\u524d\u8ff0\u306e\u3068\u304a\u308a\u3001PHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\u3067\u5fc5\u9808\u3068\u306a\u308b\u306e\u306f<code>auto_register<\/code>\u306e\u307f\u3067\u3001\u3053\u308c\u306b\u3088\u308a\u30ab\u30b9\u30bf\u30e0\u5c5e\u6027\u306eUI\u304c\u81ea\u52d5\u751f\u6210\u3055\u308c\u308b\u3002\u305d\u306e\u4ed6\u306b\u3053\u3053\u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b<code>supports<\/code>\u306b\u306f\u3001\u8272\u3001\u4f59\u767d\u3001\u30bf\u30a4\u30dd\u30b0\u30e9\u30d5\u30a3\u3001\u5f71\u3001\u67a0\u7dda\u306a\u3069\u304c\u3042\u308b\u3002<\/li>\n<\/ul>\n<p data-start=\"691\" data-end=\"765\">\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570<code>render_smart_pricing_block()<\/code>\u306f\u3001\u30d6\u30ed\u30c3\u30af\u306eHTML\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u306e\u51e6\u7406\u5185\u5bb9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul data-start=\"767\" data-end=\"1357\">\n<li data-section-id=\"1mc6cyw\" data-start=\"767\" data-end=\"829\">\u30d6\u30ed\u30c3\u30af\u5c5e\u6027\u3092\u53d6\u5f97\u3057\u3066\u30b5\u30cb\u30bf\u30a4\u30ba\u3057\u3001\u305d\u306e\u5f8c\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3068\u30a8\u30c7\u30a3\u30bf\u30fc\u3067\u306e\u8868\u793a\u306b\u4f7f\u7528\u3055\u308c\u308bCSS\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3002<\/li>\n<li data-section-id=\"pox10a\" data-start=\"830\" data-end=\"1011\">\u30d6\u30ed\u30c3\u30af\u5185\u306b\u8868\u793a\u3055\u308c\u308b\u6a5f\u80fd\u4e00\u89a7\uff08<code>$attributes['featuresList'];<\/code>\uff09\u306f\u500b\u5225\u306b\u51e6\u7406\u3055\u308c\u308b\u3002\u73fe\u6642\u70b9\u3067\u306f\u3001\u30d6\u30ed\u30c3\u30af\u8a2d\u5b9a\u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u9ad8\u5ea6\u306a\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u6a5f\u80fd\u4e00\u89a7\u306e\u3088\u3046\u306a\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u307f\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u3042\u308a\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001\u88fd\u54c1\u306e\u7279\u5fb4\u3092\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u624b\u52d5\u5165\u529b\u3057\u3066\u3044\u308b\u3002<\/li>\n<li><code>$wrapper_attributes<\/code>\u5909\u6570\u306b\u306f\u3001<a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_block_wrapper_attributes\/\"><code>get_block_wrapper_attributes<\/code>\u95a2\u6570<\/a>\u306b\u3088\u3063\u3066\u63d0\u4f9b\u3055\u308c\u308b\u30e9\u30c3\u30d1\u30fc\u5c5e\u6027\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u3002\u3053\u306e\u95a2\u6570\u306f\u3001\u30b3\u30fc\u30c9\u5185\u3067\u6307\u5b9a\u3055\u308c\u305f\u30af\u30e9\u30b9\uff08<code>pricing-card theme-{$theme}<\/code>\uff09\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30d6\u30ed\u30c3\u30af\u30a4\u30f3\u30b9\u30da\u30af\u30bf\u30fc\u3067\u8a2d\u5b9a\u3057\u305f\u30b9\u30bf\u30a4\u30eb\uff08\u8272\u3001\u67a0\u7dda\u3001\u30d1\u30c7\u30a3\u30f3\u30b0\u3001\u30de\u30fc\u30b8\u30f3\u3001\u5f71\u3001\u30bf\u30a4\u30dd\u30b0\u30e9\u30d5\u30a3\uff09\u3084\u6a19\u6e96\u306e\u30d6\u30ed\u30c3\u30af\u30af\u30e9\u30b9\uff08<code>wp-block-tutorial-smart-pricing<\/code>\uff09\u3082\u81ea\u52d5\u7684\u306b\u53d6\u5f97\u3002<\/li>\n<li><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_kses_data\/\"><code>wp_kses_data<\/code><\/a>\u306f\u3001\u6587\u5b57\u5217\u5185\u306b\u60aa\u610f\u306e\u3042\u308b\u30bf\u30b0\u3084\u30b9\u30af\u30ea\u30d7\u30c8\uff08XSS\uff09\u304c\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u4fdd\u8a3c\u3059\u308b\u3002<\/li>\n<li data-section-id=\"190qtr3\" data-start=\"1326\" data-end=\"1357\">\u6b8b\u308a\u306e\u30b3\u30fc\u30c9\u3067\u30d6\u30ed\u30c3\u30af\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u751f\u6210\u3002<\/li>\n<\/ul>\n<p>\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u6709\u52b9\u5316\u3057\u3001\u65b0\u898f\u6295\u7a3f\u307e\u305f\u306f\u56fa\u5b9a\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30d6\u30ed\u30c3\u30af\u30a4\u30f3\u30b5\u30fc\u30bf\u30fc\u3092\u958b\u304d\u3001\u300c\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u300d\u30bb\u30af\u30b7\u30e7\u30f3\u307e\u3067\u30b9\u30af\u30ed\u30fc\u30eb\u3059\u308b\u3068\u3001\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u30ab\u30fc\u30c8\u306e\u30a2\u30a4\u30b3\u30f3\u3067\u8868\u793a\u3055\u308c\u305f\u300cPricing Card\u300d\u30d6\u30ed\u30c3\u30af\u304c\u78ba\u8a8d\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<figure id=\"attachment_206128\" aria-describedby=\"caption-attachment-206128\" style=\"width: 2034px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-206128 size-full\" src=\"https:\/\/kinqsta.com\/wp-content\/uploads\/2026\/02\/php-only-block-example.png\" alt=\"\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u30fc\u5185\u306e\u30ab\u30b9\u30bf\u30e0PHP\u306e\u307f\u30d6\u30ed\u30c3\u30af\" width=\"2034\" height=\"1322\"><figcaption id=\"caption-attachment-206128\" class=\"wp-caption-text\">\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u30fc\u5185\u306e\u30ab\u30b9\u30bf\u30e0PHP\u306e\u307f\u30d6\u30ed\u30c3\u30af<\/figcaption><\/figure>\n<p data-start=\"19\" data-end=\"50\">\u4e0a\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30e9\u30a4\u30c8\u30c6\u30fc\u30de\u3067\u8868\u793a\u3055\u308c\u305f\u30d6\u30ed\u30c3\u30af\u3067\u3059\u3002<\/p>\n<p data-start=\"52\" data-end=\"99\">\u4ee5\u4e0b\u306f\u30d6\u30ed\u30c3\u30af\u306e\u30c0\u30fc\u30af\u30c6\u30fc\u30de\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u8a2d\u5b9a\u3057\u305f\u5404\u7a2e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_206129\" aria-describedby=\"caption-attachment-206129\" style=\"width: 2188px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-206129 size-full\" src=\"https:\/\/kinqsta.com\/wp-content\/uploads\/2026\/02\/php-only-dark-theme-block-settings.png\" alt=\"\u30d6\u30ed\u30c3\u30af\u8a2d\u5b9a\u3092\u5099\u3048\u305fPHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\" width=\"2188\" height=\"1652\"><figcaption id=\"caption-attachment-206129\" class=\"wp-caption-text\">\u30d6\u30ed\u30c3\u30af\u8a2d\u5b9a\u3092\u5099\u3048\u305fPHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af<\/figcaption><\/figure>\n<p>\u4ee5\u4e0b\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3067\u306f\u3001\u30d6\u30ed\u30c3\u30af\u30b5\u30dd\u30fc\u30c8\u306b\u3088\u3063\u3066\u8ffd\u52a0\u3055\u308c\u305f\u30b9\u30bf\u30a4\u30eb\u8a2d\u5b9a\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_206130\" aria-describedby=\"caption-attachment-206130\" style=\"width: 2104px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-206130 size-full\" src=\"https:\/\/kinqsta.com\/wp-content\/uploads\/2026\/02\/php-only-customized-dark-theme.png\" alt=\"\u30ab\u30b9\u30bf\u30e0\u30ab\u30e9\u30fc\u3092\u9069\u7528\u3057\u305f\u30c0\u30fc\u30af\u30c6\u30fc\u30de\u306ePHP\u306e\u307f\u30d6\u30ed\u30c3\u30af\" width=\"2104\" height=\"1310\"><figcaption id=\"caption-attachment-206130\" class=\"wp-caption-text\">\u30ab\u30b9\u30bf\u30e0\u30ab\u30e9\u30fc\u3092\u9069\u7528\u3057\u305f\u30c0\u30fc\u30af\u30c6\u30fc\u30de\u306ePHP\u306e\u307f\u30d6\u30ed\u30c3\u30af<\/figcaption><\/figure>\n<p>\u307e\u305f\u3001supports\u3067\u8ffd\u52a0\u3057\u305f\u30b9\u30bf\u30a4\u30eb\u306f\u3001\u30d6\u30ed\u30c3\u30af\u306e\u30c6\u30fc\u30de\u30b9\u30bf\u30a4\u30eb\u3088\u308a\u3082\u512a\u5148\u3055\u308c\u308b\u70b9\u306b\u3082\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u30d6\u30ed\u30c3\u30af\u306e\u5916\u89b3\u3092\u3088\u308a\u67d4\u8edf\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_206131\" aria-describedby=\"caption-attachment-206131\" style=\"width: 2406px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-206131 size-full\" src=\"https:\/\/kinqsta.com\/wp-content\/uploads\/2026\/02\/customized-php-only-blocks.png\" alt=\"PHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\u30923\u3064\u4f7f\u7528\u3057\u305f\u30013\u3064\u306e\u30b5\u30fc\u30d3\u30b9\u30ec\u30d9\u30eb\u306e\u6599\u91d1\u8868\" width=\"2406\" height=\"1362\"><figcaption id=\"caption-attachment-206131\" class=\"wp-caption-text\">PHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\u30923\u3064\u4f7f\u7528\u3057\u305f\u30013\u3064\u306e\u30b5\u30fc\u30d3\u30b9\u30ec\u30d9\u30eb\u306e\u6599\u91d1\u8868<\/figcaption><\/figure>\n<h2>PHP\u306e\u307f\u3067\u65e2\u5b58\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092Gutenberg\u30d6\u30ed\u30c3\u30af\u306b\u5909\u63db\u3059\u308b<\/h2>\n<p data-start=\"72\" data-end=\"212\">PHP\u30d6\u30ed\u30c3\u30af\u306e\u6700\u3082\u76f4\u63a5\u7684\u306a\u4f7f\u3044\u65b9\u306e\u3072\u3068\u3064\u304c\u3001\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306e\u30e9\u30c3\u30d1\u30fc\u3068\u3057\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3059\u3002Gutenberg\u3067\u3082\u30b3\u30f3\u30c6\u30f3\u30c4\u5185\u3067\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u304c\u3001\u305d\u306e\u5834\u5408\u306f\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u306b\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u624b\u52d5\u3067\u633f\u5165\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u3042\u307e\u308a\u4f7f\u3044\u3084\u3059\u3044\u3068\u306f\u8a00\u3048\u307e\u305b\u3093\u3002<\/p>\n<p data-start=\"214\" data-end=\"239\">\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306a\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">function my_custom_alert_shortcode( $atts ) {\n\t$options = shortcode_atts( array(\n\t\t'type'    =&gt; 'info',\n\t\t'message' =&gt; 'Default alert message',\n\t), $atts );\n\n\t$styles = array(\n\t\t'info'    =&gt; 'background: #d1ecf1; color: #0c5460; border-color: #bee5eb;',\n\t\t'warning' =&gt; 'background: #fff3cd; color: #856404; border-color: #ffeeba;',\n\t\t'error'   =&gt; 'background: #f8d7da; color: #721c24; border-color: #f5c6cb;'\n\t);\n\n\t$style = $styles[ $options['type'] ] ?? $styles['info'];\n\n\treturn sprintf(\n\t\t'&lt;div class=\"sc-alert-box\" style=\"%s padding: 20px; border: 1px solid; border-radius: 6px; margin: 10px 0;\"&gt;\n\t\t\t&lt;strong style=\"text-transform: uppercase;\"&gt;%s:&lt;\/strong&gt; %s\n\t\t&lt;\/div&gt;',\n\t\tesc_attr( $style ),\n\t\tesc_html( $options['type'] ),\n\t\tesc_html( $options['message'] )\n\t);\n}\nadd_shortcode( 'sc_alert', 'my_custom_alert_shortcode' );<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f\u3001\u4ee5\u4e0b\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30f3\u30c6\u30f3\u30c4\u5185\u306b\u633f\u5165\u3067\u304d\u308b\u30b7\u30f3\u30d7\u30eb\u306a\u30dc\u30c3\u30af\u30b9\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-text\">[sc_alert type=\"alert\" message=\"Hello\"]<\/code><\/pre>\n<p>Gutenberg\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306b\u3001\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u3092\u4f7f\u7528\u3057\u3066\u3053\u306e\u30dc\u30c3\u30af\u30b9\u3092\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u633f\u5165\u3057\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_206137\" aria-describedby=\"caption-attachment-206137\" style=\"width: 1304px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-206137 size-full\" src=\"https:\/\/kinqsta.com\/wp-content\/uploads\/2026\/02\/shortcode-block.png\" alt=\"\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\" width=\"1304\" height=\"272\"><figcaption id=\"caption-attachment-206137\" class=\"wp-caption-text\">\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af<\/figcaption><\/figure>\n<p>PHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u3053\u306e\u72b6\u6cc1\u306f\u5927\u304d\u304f\u5909\u308f\u308a\u307e\u3059\u3002\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092PHP\u306e\u307f\u306eGutenberg\u30d6\u30ed\u30c3\u30af\u3067\u30e9\u30c3\u30d7\u3057\u3001UI\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u8a2d\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u8ffd\u52a0\u3059\u308b\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-php\">\/**\n * Rendering callback\n *\/\nfunction render_shortcode_alert_wrapper_block( $attributes ) {\n\n\t$type    = esc_attr( $attributes['alertType'] );\n\t$message = esc_attr( $attributes['alertMessage'] );\n\n\t$shortcode_string = sprintf( '[sc_alert type=\"%s\" message=\"%s\"]', $type, $message );\n\n\t$wrapper_attributes = wp_kses_data( get_block_wrapper_attributes( array(\n\t\t'class' =&gt; 'wp-block-shortcode-alert-wrapper',\n\t) ) );\n\n\treturn sprintf(\n\t\t'&lt;div %s&gt;%s&lt;\/div&gt;',\n\t\t$wrapper_attributes,\n\t\tdo_shortcode( $shortcode_string )\n\t);\n}\n\n\/**\n * Register the block type on the server\n *\/\nadd_action( 'init', function() {\n\tregister_block_type( 'tutorial\/alert-wrapper', array(\n\t\t'api_version'     =&gt; 3,\n\t\t'title'           =&gt; 'Alert (Shortcode wrapper)',\n\t\t'icon'            =&gt; 'feedback',\n\t\t'category'        =&gt; 'widgets',\n\t\t'render_callback' =&gt; 'render_shortcode_alert_wrapper_block',\n\t\t\n\t\t'attributes'      =&gt; array(\n\t\t\t'alertType' =&gt; array(\n\t\t\t\t'type'    =&gt; 'string',\n\t\t\t\t'enum'    =&gt; array( 'info', 'warning', 'error' ),\n\t\t\t\t'default' =&gt; 'info',\n\t\t\t),\n\t\t\t'alertMessage' =&gt; array(\n\t\t\t\t'type'    =&gt; 'string',\n\t\t\t\t'default' =&gt; 'Type your alert message here...',\n\t\t\t),\n\t\t),\n\n\t\t'supports'        =&gt; array(\n\t\t\t'auto_register' =&gt; true,\n\t\t\t'spacing'       =&gt; array( 'margin' =&gt; true, 'padding' =&gt; true ),\n\t\t\t'typography'    =&gt; array( 'fontSize' =&gt; true ),\n\t\t),\n\t) );\n});<\/code><\/pre>\n<p data-start=\"27\" data-end=\"87\">\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306f\u3001\u524d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u7d39\u4ecb\u3057\u305f\u30b3\u30fc\u30c9\u3068\u3088\u304f\u4f3c\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u3067\u7570\u306a\u308b\u306e\u306f\u3001\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u7528\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3067\u3059\u3002<\/p>\n<ul data-start=\"89\" data-end=\"245\">\n<li data-section-id=\"38913h\" data-start=\"89\" data-end=\"167\"><code>$shortcode_string<\/code>\u306b\u306f\u3001\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u6587\u5b57\u5217\uff08<code>[sc_alert type=\"%s\" message=\"%s\"]<\/code>\uff09\u304c\u683c\u7d0d\u3055\u308c\u308b<\/li>\n<li data-section-id=\"1icvrti\" data-start=\"168\" data-end=\"245\">\u3053\u306e\u95a2\u6570\u306f\u3001\u30d6\u30ed\u30c3\u30af\u30b3\u30f3\u30c6\u30ca\u306eHTML\u3068\u3001\u542b\u307e\u308c\u308b\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\uff08<code class=\"language-php\">do_shortcode( $shortcode_string )<\/code>\uff09\u3092\u8fd4\u3059<\/li>\n<\/ul>\n<p data-start=\"247\" data-end=\"371\">\u6b21\u306b\u3001\u30d6\u30ed\u30c3\u30af\u30a4\u30f3\u30b5\u30fc\u30bf\u30fc\u3092\u958b\u304d\u3001\u300c\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u300d\u5185\u306b\u3042\u308b\u300cShortcode wrapper\u300d\u30d6\u30ed\u30c3\u30af\u3092\u63a2\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u633f\u5165\u3057\u3001\u30d6\u30ed\u30c3\u30af\u8a2d\u5b9a\u30d0\u30fc\u304b\u3089\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002\u30d6\u30ed\u30c3\u30af\u306f\u30a8\u30c7\u30a3\u30bf\u30fc\u3068\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u4e21\u65b9\u3067\u540c\u3058\u898b\u305f\u76ee\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_206135\" aria-describedby=\"caption-attachment-206135\" style=\"width: 2298px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-206135 size-full\" src=\"https:\/\/kinqsta.com\/wp-content\/uploads\/2026\/02\/php-only-shortcode-example.png\" alt=\"PHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\u3067\u30e9\u30c3\u30d7\u3055\u308c\u305f\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306e\u4f8b\" width=\"2298\" height=\"912\"><figcaption id=\"caption-attachment-206135\" class=\"wp-caption-text\">PHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\u3067\u30e9\u30c3\u30d7\u3055\u308c\u305f\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306e\u4f8b<\/figcaption><\/figure>\n<h2>PHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\u767b\u5834\u306b\u3088\u3063\u3066WordPress\u958b\u767a\u306f\u3069\u3046\u5909\u308f\u308b\uff1f<\/h2>\n<p data-start=\"69\" data-end=\"249\">\u73fe\u6642\u70b9\u3067\u306f\u3001\u7d14\u7c8b\u306aPHP\u30d6\u30ed\u30c3\u30af\u306f\u307e\u3060\u5b9f\u9a13\u6bb5\u968e\u306b\u3042\u308a\u3001\u6a5f\u80fd\u3082\u9650\u5b9a\u7684\u3067\u3059\u3002Gutenberg\u306b\u306f\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/wordpress-block-patterns\/\">\u30d6\u30ed\u30c3\u30af\u30d1\u30bf\u30fc\u30f3<\/a>\u3084<a href=\"https:\/\/kinqsta.com\/jp\/blog\/style-block-variations-gutenberg\/\">\u30d6\u30ed\u30c3\u30af\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3<\/a>\u3068\u3044\u3063\u305f\u3001\u30cd\u30a4\u30c6\u30a3\u30d6\u306eGutenberg\u30d6\u30ed\u30c3\u30af\u3084JavaScript\u3067\u69cb\u7bc9\u3055\u308c\u305f\u30ab\u30b9\u30bf\u30e0\u30d6\u30ed\u30c3\u30af\u3068\u540c\u7b49\u306e\u7de8\u96c6\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u3001\u3088\u308a\u5f37\u529b\u306a\u6a5f\u80fd\u3082\u5b58\u5728\u3057\u307e\u3059\u3002\u305d\u308c\u3067\u3082\u3001PHP\u30d6\u30ed\u30c3\u30af\u304c\u5927\u304d\u306a\u53ef\u80fd\u6027\u3092\u767a\u63ee\u3059\u308b\u5834\u9762\u306f\u78ba\u304b\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p data-start=\"251\" data-end=\"342\">\u307e\u305a\u3001PHP\u306e\u307f\u306e\u30d6\u30ed\u30c3\u30af\u306f\u3001\u7279\u306b\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9JavaScript\u958b\u767a\u306b\u3042\u307e\u308a\u99b4\u67d3\u307f\u306e\u306a\u3044WordPress\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u3001\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u30fc\u306e\u666e\u53ca\u3092\u5f8c\u62bc\u3057\u3059\u308b\u3053\u3068\u304c\u671f\u5f85\u3055\u308c\u307e\u3059\u3002<\/p>\n<p data-start=\"344\" data-end=\"416\">\u3055\u3089\u306b\u3001\u672c\u8a18\u4e8b\u306e\u4f8b\u3067\u793a\u3057\u305f\u3088\u3046\u306b\u3001\u30ab\u30b9\u30bf\u30e0\u95a2\u6570\u3084\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306e\u30e9\u30c3\u30d1\u30fc\u3068\u3057\u3066\u6700\u9069\u3067\u3059\u3002\u307e\u305f\u3001\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u3068\u306e\u9023\u643a\u3082\u5bb9\u6613\u306b\u884c\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p data-start=\"418\" data-end=\"482\">\u4eca\u5f8c\u306f\u3001\u3055\u3089\u306a\u308b\u6539\u5584\u3084\u6a5f\u80fd\u8ffd\u52a0\u306b\u52a0\u3048\u3001\u8a2d\u5b9a\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u62e1\u5145\u3084\u65e2\u5b58\u306eGutenberg\u30c4\u30fc\u30eb\u3068\u306e\u7d71\u5408\u3082\u9032\u3093\u3067\u3044\u304f\u3053\u3068\u304c\u671f\u5f85\u3055\u308c\u307e\u3059\u3002\u5c11\u306a\u304f\u3068\u3082\u3001PHP\u306e\u307f\u3067\u4f5c\u6210\u3059\u308b\u30d6\u30ed\u30c3\u30af\u306b\u3088\u3063\u3066\u3001Gutenberg\u306e\u30d6\u30ed\u30c3\u30af\u958b\u767a\u306f\u5927\u304d\u304f\u7c21\u7d20\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p data-start=\"544\" data-end=\"735\">Kinsta\u306f\u3001WordPress<a href=\"https:\/\/kinqsta.com\/jp\/blog\/wordpress-agency-tech-stack\/\">\u958b\u767a\u306b\u5fc5\u8981\u306a\u30c4\u30fc\u30eb<\/a>\u3092\u63d0\u4f9b\u3057\u3001\u8907\u96d1\u306a\u8a2d\u5b9a\u3084\u7169\u96d1\u306a\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u4f5c\u696d\u3092\u4e0d\u8981\u306b\u3059\u308b\u3053\u3068\u3067\u3001WordPress\u958b\u767a\u305d\u306e\u3082\u306e\u306b\u96c6\u4e2d\u3067\u304d\u308b\u74b0\u5883\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<a href=\"https:\/\/kinqsta.com\/jp\/blog\/remote-wordpress-development-kinsta-ssh\/\">SSH<\/a>\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/sftp-ssh-features\/\">SFTP<\/a>\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/how-to-setup-ci-cd-pipeline\/\">Git\u7d71\u5408<\/a>\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/kinsta-automatic-updates\/\">\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/a>\u3001<a href=\"https:\/\/kinqsta.com\/jp\/wordpress-hosting\/staging\/\">\u30ef\u30f3\u30af\u30ea\u30c3\u30af\u306e\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u74b0\u5883<\/a>\u3001<a href=\"https:\/\/kinqsta.com\/jp\/devkinsta\/features\/\">\u7d44\u307f\u8fbc\u307f\u306e\u30ed\u30fc\u30ab\u30eb\u958b\u767a\u30c4\u30fc\u30eb<\/a>\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u6a5f\u80fd\u3092\u5099\u3048\u3066\u3044\u307e\u3059\u3002\u307e\u305a\u306f<a href=\"https:\/\/kinqsta.com\/jp\/devkinsta\/features\/\">\u521d\u6708\u7121\u6599\u3067\u6c17\u8efd\u306b\u304a\u8a66\u3057\u304f\u3060\u3055\u3044<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9577\u5e74\u306b\u308f\u305f\u308a\u3001Gutenberg\u30d6\u30ed\u30c3\u30af\u306e\u958b\u767a\u3092\u7fd2\u5f97 &#8230;<\/p>\n","protected":false},"author":36,"featured_media":68868,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[],"topic":[797,826],"class_list":["post-68867","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","topic-php-function","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>\u3010React\u4e0d\u8981\u3011PHP\u3060\u3051\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/title>\n<meta name=\"description\" content=\"JS\u3084React\u3001\u8907\u96d1\u306a\u30d3\u30eb\u30c9\u306a\u3057\u3067\u3001PHP\u306e\u307f\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3057\u3001\u30ab\u30b9\u30bf\u30e0\u30d6\u30ed\u30c3\u30af\u3092\u6570\u5206\u3067WordPress\u306b\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\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:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010React\u4e0d\u8981\u3011PHP\u3060\u3051\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"JS\u3084React\u3001\u8907\u96d1\u306a\u30d3\u30eb\u30c9\u306a\u3057\u3067\u3001PHP\u306e\u307f\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3057\u3001\u30ab\u30b9\u30bf\u30e0\u30d6\u30ed\u30c3\u30af\u3092\u6570\u5206\u3067WordPress\u306b\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/\" \/>\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=\"2026-03-27T10:29:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-30T11:26:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2026\/03\/how-to-build-php-only-gutenberg-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=\"JS\u3084React\u3001\u8907\u96d1\u306a\u30d3\u30eb\u30c9\u306a\u3057\u3067\u3001PHP\u306e\u307f\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3057\u3001\u30ab\u30b9\u30bf\u30e0\u30d6\u30ed\u30c3\u30af\u3092\u6570\u5206\u3067WordPress\u306b\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2026\/03\/how-to-build-php-only-gutenberg-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=\"8\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/\"},\"author\":{\"name\":\"Carlo Daniele\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/962dde02ea6f5df089b5d8d0853bbc63\"},\"headline\":\"\u3010React\u4e0d\u8981\u3011PHP\u3060\u3051\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\",\"datePublished\":\"2026-03-27T10:29:46+00:00\",\"dateModified\":\"2026-03-30T11:26:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/\"},\"wordCount\":220,\"publisher\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2026\/03\/how-to-build-php-only-gutenberg-blocks.png\",\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/\",\"url\":\"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/\",\"name\":\"\u3010React\u4e0d\u8981\u3011PHP\u3060\u3051\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\",\"isPartOf\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2026\/03\/how-to-build-php-only-gutenberg-blocks.png\",\"datePublished\":\"2026-03-27T10:29:46+00:00\",\"dateModified\":\"2026-03-30T11:26:09+00:00\",\"description\":\"JS\u3084React\u3001\u8907\u96d1\u306a\u30d3\u30eb\u30c9\u306a\u3057\u3067\u3001PHP\u306e\u307f\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3057\u3001\u30ab\u30b9\u30bf\u30e0\u30d6\u30ed\u30c3\u30af\u3092\u6570\u5206\u3067WordPress\u306b\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/#primaryimage\",\"url\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2026\/03\/how-to-build-php-only-gutenberg-blocks.png\",\"contentUrl\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2026\/03\/how-to-build-php-only-gutenberg-blocks.png\",\"width\":1470,\"height\":735},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinqsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress\u30b5\u30a4\u30c8\u958b\u767a\",\"item\":\"https:\/\/kinqsta.com\/jp\/topics\/wordpress-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u3010React\u4e0d\u8981\u3011PHP\u3060\u3051\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#website\",\"url\":\"https:\/\/kinqsta.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:\/\/kinqsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinqsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinqsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinqsta.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:\/\/kinqsta.com\/jp\/#\/schema\/person\/962dde02ea6f5df089b5d8d0853bbc63\",\"name\":\"Carlo Daniele\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinqsta.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:\/\/kinqsta.com\/jp\/blog\/author\/carlodaniele\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u3010React\u4e0d\u8981\u3011PHP\u3060\u3051\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","description":"JS\u3084React\u3001\u8907\u96d1\u306a\u30d3\u30eb\u30c9\u306a\u3057\u3067\u3001PHP\u306e\u307f\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3057\u3001\u30ab\u30b9\u30bf\u30e0\u30d6\u30ed\u30c3\u30af\u3092\u6570\u5206\u3067WordPress\u306b\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\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:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/","og_locale":"ja_JP","og_type":"article","og_title":"\u3010React\u4e0d\u8981\u3011PHP\u3060\u3051\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","og_description":"JS\u3084React\u3001\u8907\u96d1\u306a\u30d3\u30eb\u30c9\u306a\u3057\u3067\u3001PHP\u306e\u307f\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3057\u3001\u30ab\u30b9\u30bf\u30e0\u30d6\u30ed\u30c3\u30af\u3092\u6570\u5206\u3067WordPress\u306b\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2026-03-27T10:29:46+00:00","article_modified_time":"2026-03-30T11:26:09+00:00","og_image":[{"width":1470,"height":735,"url":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2026\/03\/how-to-build-php-only-gutenberg-blocks.png","type":"image\/png"}],"author":"Carlo Daniele","twitter_card":"summary_large_image","twitter_description":"JS\u3084React\u3001\u8907\u96d1\u306a\u30d3\u30eb\u30c9\u306a\u3057\u3067\u3001PHP\u306e\u307f\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3057\u3001\u30ab\u30b9\u30bf\u30e0\u30d6\u30ed\u30c3\u30af\u3092\u6570\u5206\u3067WordPress\u306b\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","twitter_image":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2026\/03\/how-to-build-php-only-gutenberg-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":"8\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/#article","isPartOf":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/"},"author":{"name":"Carlo Daniele","@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/962dde02ea6f5df089b5d8d0853bbc63"},"headline":"\u3010React\u4e0d\u8981\u3011PHP\u3060\u3051\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","datePublished":"2026-03-27T10:29:46+00:00","dateModified":"2026-03-30T11:26:09+00:00","mainEntityOfPage":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/"},"wordCount":220,"publisher":{"@id":"https:\/\/kinqsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/#primaryimage"},"thumbnailUrl":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2026\/03\/how-to-build-php-only-gutenberg-blocks.png","inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/","url":"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/","name":"\u3010React\u4e0d\u8981\u3011PHP\u3060\u3051\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","isPartOf":{"@id":"https:\/\/kinqsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/#primaryimage"},"image":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/#primaryimage"},"thumbnailUrl":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2026\/03\/how-to-build-php-only-gutenberg-blocks.png","datePublished":"2026-03-27T10:29:46+00:00","dateModified":"2026-03-30T11:26:09+00:00","description":"JS\u3084React\u3001\u8907\u96d1\u306a\u30d3\u30eb\u30c9\u306a\u3057\u3067\u3001PHP\u306e\u307f\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3057\u3001\u30ab\u30b9\u30bf\u30e0\u30d6\u30ed\u30c3\u30af\u3092\u6570\u5206\u3067WordPress\u306b\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/#primaryimage","url":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2026\/03\/how-to-build-php-only-gutenberg-blocks.png","contentUrl":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2026\/03\/how-to-build-php-only-gutenberg-blocks.png","width":1470,"height":735},{"@type":"BreadcrumbList","@id":"https:\/\/kinqsta.com\/jp\/blog\/php-only-gutenberg-blocks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinqsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"WordPress\u30b5\u30a4\u30c8\u958b\u767a","item":"https:\/\/kinqsta.com\/jp\/topics\/wordpress-development\/"},{"@type":"ListItem","position":3,"name":"\u3010React\u4e0d\u8981\u3011PHP\u3060\u3051\u3067Gutenberg\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/kinqsta.com\/jp\/#website","url":"https:\/\/kinqsta.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:\/\/kinqsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinqsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinqsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinqsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinqsta.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:\/\/kinqsta.com\/jp\/#\/schema\/person\/962dde02ea6f5df089b5d8d0853bbc63","name":"Carlo Daniele","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinqsta.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:\/\/kinqsta.com\/jp\/blog\/author\/carlodaniele\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/posts\/68867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/users\/36"}],"replies":[{"embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/comments?post=68867"}],"version-history":[{"count":4,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/posts\/68867\/revisions"}],"predecessor-version":[{"id":68883,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/posts\/68867\/revisions\/68883"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/68867\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/68867\/translations\/it"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/68867\/translations\/jp"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/68867\/translations\/fr"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/68867\/translations\/de"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/68867\/translations\/es"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/68867\/translations\/nl"},{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/68867\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/media\/68868"}],"wp:attachment":[{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/media?parent=68867"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/tags?post=68867"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/topic?post=68867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}