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

function exercise_workout_studio_register_block_patterns() {
	$exercise_workout_studio_block_pattern_categories = array(
		'exercise-workout-studio' => array( 'label' => esc_html__( 'Exercise Workout Studio', 'exercise-workout-studio' ) ),
		'pages' => array( 'label' => esc_html__( 'Pages', 'exercise-workout-studio' ) ),
	);

	$exercise_workout_studio_block_pattern_categories = apply_filters( 'exercise_workout_studio_exercise_workout_studio_block_pattern_categories', $exercise_workout_studio_block_pattern_categories );

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