add full page pattern category
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Aadil Ayub 2024-06-12 14:13:25 +05:00
parent a4ae66abf5
commit 79a4c6c31f

View File

@ -67,3 +67,16 @@ function lex_scotland_block_styles() {
// enable customizer // enable customizer
add_action( 'customize_register', '__return_true' ); add_action( 'customize_register', '__return_true' );
// add full page pattern category
function lex_scotland_pattern_categories() {
register_block_pattern_category(
'lexscotland_page',
array(
'label' => _x( 'Pages', 'Block pattern category', 'lexscotland' ),
'description' => __( 'A collection of full page layouts.', 'lexscotland' ),
)
);
}
add_action( 'init', 'twentytwentyfour_pattern_categories' );