[SOLVED] Gutenberg render locate_template

Issue I wanna render a simple template with gutenberg serverside with create-guten-block. init.php: function melaniemueller_templateparts_block_cgb_block_assets() { register_block_type( ‘cgb/block-melaniemueller-templateparts-block’, array( ‘render_callback’ => ‘mmu_block_render’, ) ); } } // Hook: Block assets. add_action( ‘init’, ‘melaniemueller_templateparts_block_cgb_block_assets’ ); function mmu_block_render($attr, $content) { locate_template( ‘custom\php\templates\header\header_main_1.php’,

Continue reading