Are only default blocks allowed to create block patterns?

[ad_1]

I posted this recently:

TLDR of that post: I submitted a wp theme that uses custom blocks but they told me I had to move my custom blocks to a plugin. Because appearance (theme) must be separared from functionality (plugins)

Taking that last statement into consideration, I decided to create a new theme from zero and create custom blocks that only manage appearance, no functionality (displaying posts and all that).

But apparently they don’t want that either.

It seems to me that if you use register_block_type that must be moved to a plugin.

I decided to sneak peak into the code of some FSE themes in the repository and realized that they create block patterns with the default core blocks.

This surprised me and annoyed me because I’ve been learning how to create gutenberg blocks and all of that and I’m having a lot of fun with blocks and FSE but if they only allow the core blocks to be used in block patterns I feel like they are restricting a lot of cool stuff people could do.

So, is this true, can I only create block patterns with the core blocks or am I missing something?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer