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

function yoga_workout_register_block_patterns() {
	$yoga_workout_block_pattern_categories = array(
		'yoga-workout' => array( 'label' => esc_html__( 'Yoga Workout', 'yoga-workout' ) ),
		'pages' => array( 'label' => esc_html__( 'Pages', 'yoga-workout' ) ),
	);

	$yoga_workout_block_pattern_categories = apply_filters( 'yoga_workout_yoga_workout_block_pattern_categories', $yoga_workout_block_pattern_categories );

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