{"id":5511,"date":"2026-02-12T20:44:39","date_gmt":"2026-02-13T01:44:39","guid":{"rendered":"https:\/\/chubes.net\/?documentation=block-development"},"modified":"2026-03-13T03:27:49","modified_gmt":"2026-03-13T07:27:49","slug":"block-development","status":"publish","type":"documentation","link":"https:\/\/chubes.net\/docs\/wordpress-core\/block-development\/block-development\/","title":{"rendered":"Block Development"},"content":{"rendered":"<p>Guides for developing custom WordPress blocks.<\/p><p><strong>Source:<\/strong> Various block-related files in <code>wp-includes\/<\/code><\/p><h2 class=\"wp-block-heading\">Topics<\/h2><figure class=\"wp-block-table\"><table><thead><tr><th>Topic<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><a href=\"https:\/\/chubes.net\/docs\/wordpress-core\/block-development\/block-json-schema-reference\/\">block-json-schema.md<\/a><\/td><td>block.json schema and fields<\/td><\/tr><tr><td><a href=\"https:\/\/chubes.net\/docs\/wordpress-core\/block-development\/block-attributes\/\">attributes.md<\/a><\/td><td>Block attributes system<\/td><\/tr><tr><td><a href=\"https:\/\/chubes.net\/docs\/wordpress-core\/block-development\/block-supports\/\">supports.md<\/a><\/td><td>Block supports (color, spacing, etc.)<\/td><\/tr><tr><td><a href=\"https:\/\/chubes.net\/docs\/wordpress-core\/block-development\/block-context\/\">context.md<\/a><\/td><td>Block context passing<\/td><\/tr><tr><td><a href=\"https:\/\/chubes.net\/docs\/wordpress-core\/block-development\/innerblocks\/\">inner-blocks.md<\/a><\/td><td>Nested block support<\/td><\/tr><tr><td><a href=\"https:\/\/chubes.net\/docs\/wordpress-core\/block-development\/block-variations\/\">variations.md<\/a><\/td><td>Block variations<\/td><\/tr><tr><td><a href=\"https:\/\/chubes.net\/docs\/wordpress-core\/block-development\/block-transforms\/\">transforms.md<\/a><\/td><td>Block transforms<\/td><\/tr><tr><td><a href=\"https:\/\/chubes.net\/docs\/wordpress-core\/block-development\/block-deprecations-and-migrations\/\">deprecations.md<\/a><\/td><td>Block deprecations<\/td><\/tr><tr><td><a href=\"https:\/\/chubes.net\/docs\/wordpress-core\/block-development\/dynamic-blocks\/\">dynamic-blocks.md<\/a><\/td><td>Server-rendered blocks<\/td><\/tr><tr><td><a href=\"https:\/\/chubes.net\/docs\/wordpress-core\/block-development\/block-bindings\/\">bindings.md<\/a><\/td><td>Block bindings API<\/td><\/tr><tr><td><a href=\"https:\/\/chubes.net\/docs\/wordpress-core\/block-development\/block-styles\/\">styles.md<\/a><\/td><td>Block styles<\/td><\/tr><tr><td><a href=\"https:\/\/chubes.net\/docs\/wordpress-core\/block-development\/block-scripts-and-styles\/\">scripts-styles.md<\/a><\/td><td>Block asset loading<\/td><\/tr><tr><td><a href=\"https:\/\/chubes.net\/docs\/wordpress-core\/block-development\/block-hooks-hooked-blocks\/\">hooks.md<\/a><\/td><td>Block development hooks<\/td><\/tr><\/tbody><\/table><\/figure><h2 class=\"wp-block-heading\">Quick Reference<\/h2><h3 class=\"wp-block-heading\">Registration<\/h3><div class=\"code-block-wrapper\"><div class=\"code-block-header\"><span class=\"code-block-language\">php<\/span><button class=\"code-copy-btn\" aria-label=\"Copy code\"><svg><use href=\"https:\/\/chubes.net\/wp-content\/themes\/chubes\/assets\/icons\/chubes.svg#icon-copy\"><\/use><\/svg><\/button><\/div><pre data-chubes-enhanced class=\"wp-block-code language-php\"><code class=\"language-php\">register_block_type( __DIR__ . &#039;\/build&#039; );\nregister_block_type_from_metadata( __DIR__ );<\/code><\/pre><\/div><h3 class=\"wp-block-heading\">Key Functions<\/h3><ul class=\"wp-block-list\"><li><code>register_block_type()<\/code> &#8211; Register a block type<\/li><li><code>register_block_style()<\/code> &#8211; Register block style variation<\/li><li><code>register_block_pattern()<\/code> &#8211; Register block pattern<\/li><\/ul>","protected":false},"excerpt":{"rendered":"<p>Guides for developing custom WordPress blocks. Source: Various block-related files in wp-includes\/ Topics Topic Description block-json-schema.md block.json schema and fields attributes.md Block attributes system supports.md Block supports (color, spacing, etc.)&#8230;<\/p>\n","protected":false},"featured_media":0,"template":"","meta":{"footnotes":""},"tags":[],"project":[600],"project_type":[749],"class_list":["post-5511","documentation","type-documentation","status-publish","hentry","project-block-development","project_type-wordpress-reference"],"project_info":{"id":589,"name":"WordPress Core","slug":"wordpress-core"},"project_type_info":{"id":749,"name":"WordPress Reference","slug":"wordpress-reference"},"_links":{"self":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/5511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/types\/documentation"}],"version-history":[{"count":3,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/5511\/revisions"}],"predecessor-version":[{"id":9005,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/5511\/revisions\/9005"}],"wp:attachment":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/media?parent=5511"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/tags?post=5511"},{"taxonomy":"project","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/project?post=5511"},{"taxonomy":"project_type","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/project_type?post=5511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}