twentytwentytwo_block_pattern_categories

twentytwentytwo_block_pattern_categories

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('twentytwentytwo_block_pattern_categories') is found 1 times:

  • /wp-content/themes/twentytwentytwo/inc/block-patterns.php line 39
    	 *         @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 );
    		}
    	}