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

function gemstone_jewelry_register_block_patterns() {
	$gemstone_jewelry_block_pattern_categories = array(
		'gemstone-jewelry' => array( 'label' => esc_html__( 'Gemstone Jewelry', 'gemstone-jewelry' ) ),
		'pages' => array( 'label' => esc_html__( 'Pages', 'gemstone-jewelry' ) ),
	);

	$gemstone_jewelry_block_pattern_categories = apply_filters( 'gemstone_jewelry_gemstone_jewelry_block_pattern_categories', $gemstone_jewelry_block_pattern_categories );

	foreach ( $gemstone_jewelry_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', 'gemstone_jewelry_register_block_patterns', 9 );