twentytwentytwo_block_pattern_categories

twentytwentytwo_block_pattern_categories

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.6.2

apply_filters('twentytwentytwo_block_pattern_categories') is found 1 times:

  • /wp-content/themes/twentytwentytwo/inc/block-patterns.php line 39
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    *         @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 );
        }
    }