<?php
/**
 * Block patterns registration.
 *
 * @package Digital Marketing Blog
 */

/**
 * Register a minimal block pattern so the theme advertises block editor extensibility.
 */
function digital_marketing_blog_register_block_patterns() {
	if ( ! function_exists( 'register_block_pattern' ) ) {
		return;
	}

	register_block_pattern(
		'digital-marketing-blog/intro-paragraph',
		array(
			'title'      => __( 'Intro paragraph', 'digital-marketing-blog' ),
			'categories' => array( 'text' ),
			'content'    => '<!-- wp:paragraph --><p></p><!-- /wp:paragraph -->',
		)
	);
}
add_action( 'init', 'digital_marketing_blog_register_block_patterns' );
