Skip to content

Instantly share code, notes, and snippets.



Created Jan 27, 2020
What would you like to do?
WordPress Gutenberg block use only once
// ... the rest of your file here
'name' => 'hero',
'title' => __('Hero'),
'description' => __('A custom hero block.'),
'render_template' => 'template-parts/blocks/hero/hero.php',
'category' => 'formatting',
'supports' => array( 'align' => false, 'multiple' => false ),
// ... the rest of your file here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.