This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
acf_register_block_type(array( | |
‘name’ => ‘custom-block’, | |
‘title’ => __(‘Custom Block’), | |
‘description’ => __(‘A custom block.’), | |
‘render_template’ => get_template_directory() . ‘/template-parts/blocks/custom-block/custom-block.php’, | |
// Basic style enqueue | |
'enqueue_style' => get_template_directory_uri() . '/template-parts/blocks/custom-block/custom-block.css', | |
// Basic Script enqueue | |
'enqueue_script' => get_template_directory_uri() . '/template-parts/blocks/custom-block/custom-block.js', |