Difference between register_block_type & wp.blocks.registerBlockType
wp.blocks.registerBlockType(). It works just as I expected, but recently I found out that WordPress also has a PHP function called
The documentation says
register_block_type() “registers a block type”.. It uses the
WP_Block_Type_Registry class, but I don’t really understand what the class does.
Anyone could help me understand what
register_block_type() does exactly and what is the difference with
Thanks for your help!