Filters the theme block patterns.
$block_patternsarraywp-content/themes/twentytwentytwo/inc/block-patterns.php:126twentytwentytwo_register_block_patterns() * Filters the theme block patterns. * * @since Twenty Twenty-Two 1.0 * * @param array $block_patterns List of block patterns by name. */ $block_patterns = apply_filters( 'twentytwentytwo_block_patterns', $block_patterns ); foreach ( $block_patterns as $block_pattern ) { $pattern_file = get_theme_file_path( '/inc/patterns/' . $block_pattern . '.php' ); register_block_pattern( 'twentytwentytwo/' . $block_pattern,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.