{"id":6174,"date":"2026-02-13T18:34:52","date_gmt":"2026-02-13T23:34:52","guid":{"rendered":"https:\/\/chubes.net\/?documentation=blocks"},"modified":"2026-02-13T20:19:24","modified_gmt":"2026-02-14T01:19:24","slug":"blocks","status":"publish","type":"documentation","link":"https:\/\/chubes.net\/docs\/spawn\/inc\/blocks\/","title":{"rendered":"Blocks"},"content":{"rendered":"<h2 class=\"wp-block-heading\">Overview<\/h2><p>Registers Spawn Gutenberg blocks from <code>build\/blocks<\/code> or <code>blocks<\/code> directories.<\/p><h2 class=\"wp-block-heading\">Blocks<\/h2><ul class=\"wp-block-list\"><li><code>domain-search<\/code><\/li><li><code>tier-select<\/code><\/li><li><code>checkout<\/code><\/li><li><code>login<\/code><\/li><li><code>dashboard<\/code><\/li><li><code>account<\/code><\/li><li><code>chat<\/code><\/li><\/ul><h2 class=\"wp-block-heading\">Methods<\/h2><ul class=\"wp-block-list\"><li><code>init(): void<\/code><\/li><li><code>register_blocks(): void<\/code><\/li><\/ul><h2 class=\"wp-block-heading\">Example<\/h2><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\">add_action( &#039;init&#039;, [ SpawnBlocks::class, &#039;register_blocks&#039; ] );<\/code><\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Overview Registers Spawn Gutenberg blocks from build\/blocks or blocks directories. Blocks domain-search tier-select checkout login dashboard account chat Methods init(): void register_blocks(): void Example add_action( &#8216;init&#8217;, [ SpawnBlocks::class, &#8216;register_blocks&#8217; ]&#8230;<\/p>\n","protected":false},"featured_media":0,"template":"","meta":{"footnotes":""},"tags":[],"project":[772],"project_type":[485],"class_list":["post-6174","documentation","type-documentation","status-publish","hentry","project-inc","project_type-tools"],"project_info":{"id":765,"name":"Spawn","slug":"spawn"},"project_type_info":{"id":484,"name":"WordPress Plugins","slug":"wordpress-plugins"},"_links":{"self":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/6174","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\/6174\/revisions"}],"predecessor-version":[{"id":8661,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/6174\/revisions\/8661"}],"wp:attachment":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/media?parent=6174"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/tags?post=6174"},{"taxonomy":"project","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/project?post=6174"},{"taxonomy":"project_type","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/project_type?post=6174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}