Add full page pattern category
This commit is contained in:
parent
681fbb5b4b
commit
2a3122614c
@ -168,4 +168,15 @@ function jett_remove_current_from_queries( $query_vars, $block ) {
|
|||||||
$query_vars['post__not_in'] = array( get_the_ID() );
|
$query_vars['post__not_in'] = array( get_the_ID() );
|
||||||
return $query_vars;
|
return $query_vars;
|
||||||
}
|
}
|
||||||
add_filter( 'query_loop_block_query_vars', 'jett_remove_current_from_queries', 10, 2 );
|
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' ),
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user