Support

Account

Home Forums Gutenberg Insert block when creating a new post Reply To: Insert block when creating a new post

  • Got it!

    //add default blocks to the content
    function indewalvis_post_block_template() {
    	$post_type_object = get_post_type_object( 'page' );
    	$post_type_object->template = array(
    		array( 'acf/slideshow' ),
    		array( 'core/heading', array( 'level' => 1 ) ),
    		array( 'core/paragraph' ),
    	);
    }
    add_action( 'init', 'indewalvis_post_block_template' );