register cmt pattern category
This commit is contained in:
parent
f0ff2dc946
commit
8d7f2ffdb5
@ -11,4 +11,12 @@ function cmt_block_styles() {
|
|||||||
add_theme_support( 'wp-block-styles' );
|
add_theme_support( 'wp-block-styles' );
|
||||||
add_editor_style( 'styles.css' );
|
add_editor_style( 'styles.css' );
|
||||||
}
|
}
|
||||||
add_action( 'after_setup_theme', 'cmt_block_styles' );
|
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' );
|
Loading…
Reference in New Issue
Block a user