Skip to content

Commit

Permalink
Build: Block manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
tomusborne committed Nov 4, 2024
1 parent c1e78d5 commit 0431a8c
Show file tree
Hide file tree
Showing 3 changed files with 1,046 additions and 483 deletions.
7 changes: 7 additions & 0 deletions includes/class-render-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ public function register_blocks() {
)
);

if ( function_exists( 'wp_register_block_metadata_collection' ) ) {
wp_register_block_metadata_collection(
WP_PLUGIN_DIR . '/generateblocks/dist',
WP_PLUGIN_DIR . '/generateblocks/dist/blocks-manifest.php'
);
}

register_block_type_from_metadata(
GENERATEBLOCKS_DIR . '/dist/blocks/text',
[
Expand Down
Loading

0 comments on commit 0431a8c

Please sign in to comment.