From 2a3122614cc6eceed03d05aecd0e1265f8e08cab Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Wed, 3 Jul 2024 13:05:42 +0500 Subject: [PATCH] Add full page pattern category --- functions.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 081a6a6..03b0449 100644 --- a/functions.php +++ b/functions.php @@ -168,4 +168,15 @@ function jett_remove_current_from_queries( $query_vars, $block ) { $query_vars['post__not_in'] = array( get_the_ID() ); return $query_vars; } -add_filter( 'query_loop_block_query_vars', 'jett_remove_current_from_queries', 10, 2 ); \ No newline at end of file +add_filter( 'query_loop_block_query_vars', 'jett_remove_current_from_queries', 10, 2 ); + +// Register custom pattern categories +function jett_pattern_categories() { + register_block_pattern_category( + 'jett_full_page_layouts', + array( + 'label' => _x( 'Pages', 'Block pattern category', 'jett' ), + 'description' => __( 'A collection of full page layouts.', 'jett' ), + ) + ); +} \ No newline at end of file