<?php
/**
 * Waterproofing Services: Block Patterns
 *
 * @since Waterproofing Services 1.0
 */

/**
 * Registers block patterns and categories.
 *
 * @since Waterproofing Services 1.0
 *
 * @return void
 */
function waterproofing_services_register_block_patterns() {
	$waterproofing_services_block_pattern_categories = array(
		'waterproofing-services'    => array( 'label' => __( 'Waterproofing Services', 'waterproofing-services' ) ),
	);

	$waterproofing_services_block_pattern_categories = apply_filters( 'waterproofing_services_block_pattern_categories', $waterproofing_services_block_pattern_categories );

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