Filters the theme block pattern categories.
$block_pattern_categoriesarray[]$propertiesarray[]
$labelstring
wp-content/themes/twentytwentytwo/inc/block-patterns.php:39twentytwentytwo_register_block_patterns() * An array of block category properties. * * @type string $label A human-readable label for the pattern category. * } * } */ $block_pattern_categories = apply_filters( 'twentytwentytwo_block_pattern_categories', $block_pattern_categories ); foreach ( $block_pattern_categories as $name => $properties ) { if ( ! WP_Block_Pattern_Categories_Registry::get_instance()->is_registered( $name ) ) { register_block_pattern_category( $name, $properties ); } }Introduced in Twenty Twenty-Two 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.