From 79a4c6c31ffd9ef4885bc1e78be0b513ca0b371c Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Wed, 12 Jun 2024 14:13:25 +0500 Subject: [PATCH] add full page pattern category --- functions.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 6f50e7f..689b16f 100644 --- a/functions.php +++ b/functions.php @@ -66,4 +66,17 @@ function lex_scotland_block_styles() { } // enable customizer -add_action( 'customize_register', '__return_true' ); \ No newline at end of file +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' ); \ No newline at end of file