Register Custom Block Pattern Category
Registers a "Site Layouts" block pattern category so custom patterns registered with that slug appear in their own section of the pattern inserter.
PHPby SnipCraft
php
<?php
if ( ! function_exists( 'scseed_register_pattern_category' ) ) {
function scseed_register_pattern_category() {
register_block_pattern_category(
'scseed-layouts',
array( 'label' => __( 'Site Layouts', 'scseed' ) )
);
}
add_action( 'init', 'scseed_register_pattern_category' );
}#blocks#editor#gutenberg#patterns