<?php
/**
 * SAAS Company: Block Patterns
 *
 * @since SAAS Company 1.0
 */

/**
 * Registers block patterns and categories.
 *
 * @since SAAS Company 1.0
 *
 * @return void
 */
function saas_company_register_block_patterns() {
	$saas_company_block_pattern_categories = array(
		'saas-company'    => array( 'label' => __( 'SAAS Company', 'saas-company' ) ),
	);

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

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