DEV Community

Discussion on: Creating a Gutenberg block using a function

Collapse
 
growthstu profile image
Stuart Read • Edited

Hi Gareth, thanks for the code

---> this line: add_action( "enqueue_block_editor_assets", "register_block_func" );

I think the function name should be 'login_block_func' , not 'register_block_func'

:)

It didn't work for me with a cut and paste, so this change rendered in the block editor.