Skip to content

Commit 1fdafca

Browse files
committed
Editor: Add video and audio pattern categories.
More categories, better organization for patterns as they grow and power more WordPress websites. Props aaronrobertshaw, get_dave. Fixes #60342. git-svn-id: https://develop.svn.wordpress.org/trunk@57353 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5bd13e7 commit 1fdafca

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/wp-includes/block-patterns.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,20 @@ function _register_core_block_patterns_and_categories() {
135135
'description' => __( 'Different layouts containing video or audio.' ),
136136
)
137137
);
138+
register_block_pattern_category(
139+
'videos',
140+
array(
141+
'label' => _x( 'Videos', 'Block pattern category' ),
142+
'description' => __( 'Different layouts containing videos.' ),
143+
)
144+
);
145+
register_block_pattern_category(
146+
'audio',
147+
array(
148+
'label' => _x( 'Audio', 'Block pattern category' ),
149+
'description' => __( 'Different layouts containing audio.' ),
150+
)
151+
);
138152
register_block_pattern_category(
139153
'posts',
140154
array(

0 commit comments

Comments
 (0)