From 8d7f2ffdb517054a027bc518157114c0a7aff460 Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Thu, 25 Apr 2024 20:40:36 +0500 Subject: [PATCH] register cmt pattern category --- functions.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 4e4ef07..c069dcd 100644 --- a/functions.php +++ b/functions.php @@ -11,4 +11,12 @@ function cmt_block_styles() { add_theme_support( 'wp-block-styles' ); add_editor_style( 'styles.css' ); } -add_action( 'after_setup_theme', 'cmt_block_styles' ); \ No newline at end of file +add_action( 'after_setup_theme', 'cmt_block_styles' ); + +function cmt_pattern_categories() { + register_block_pattern_category( + 'cmt', + array( 'label' => __( 'CMT Engineering', 'cmt' ) ) + ); +} +add_action( 'init', 'cmt_pattern_categories' ); \ No newline at end of file