<?php
/**
 * Block Patterns
 *
 * @package bodyart_tattoo_studio
 * @since 1.0
 */

function bodyart_tattoo_studio_register_block_patterns() {
	$bodyart_tattoo_studio_block_pattern_categories = array(
		'bodyart-tattoo-studio' => array( 'label' => esc_html__( 'Bodyart Tattoo Studio', 'bodyart-tattoo-studio' ) ),
		'pages' => array( 'label' => esc_html__( 'Pages', 'bodyart-tattoo-studio' ) ),
	);

	$bodyart_tattoo_studio_block_pattern_categories = apply_filters( 'bodyart_tattoo_studio_bodyart_tattoo_studio_block_pattern_categories', $bodyart_tattoo_studio_block_pattern_categories );

	foreach ( $bodyart_tattoo_studio_block_pattern_categories as $name => $properties ) {
		if ( ! WP_Block_Pattern_Categories_Registry::get_instance()->is_registered( $name ) ) {
			register_block_pattern_category( $name, $properties );
		}
	}
}
add_action( 'init', 'bodyart_tattoo_studio_register_block_patterns', 9 );