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

function lawyer_legal_firm_register_block_patterns() {
	$lawyer_legal_firm_block_pattern_categories = array(
		'lawyer-legal-firm' => array( 'label' => esc_html__( 'Lawyer Legal Firm', 'lawyer-legal-firm' ) ),
		'pages' => array( 'label' => esc_html__( 'Pages', 'lawyer-legal-firm' ) ),
	);

	$lawyer_legal_firm_block_pattern_categories = apply_filters( 'lawyer_legal_firm_lawyer_legal_firm_block_pattern_categories', $lawyer_legal_firm_block_pattern_categories );

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