Skip to content

Instantly share code, notes, and snippets.

@clarklab clarklab/blocks.php
Created Jan 27, 2020

Embed
What would you like to do?
WordPress Gutenberg block use only once
<?php
// ... the rest of your file here
acf_register_block_type(array(
'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.