WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
30 | * An associative array of block pattern categories, keyed by category name. |
31 | * |
32 | * @type array[] $properties { |
33 | * An array of block category properties. |
34 | * |
35 | * @type string $label A human-readable label for the pattern category. |
36 | * } |
37 | * } |
38 | */ |
39 | $block_pattern_categories = apply_filters( 'twentytwentytwo_block_pattern_categories', $block_pattern_categories ); |
40 |
|
41 | foreach ( $block_pattern_categories as $name => $properties ) { |
42 | if ( ! WP_Block_Pattern_Categories_Registry::get_instance()->is_registered( $name ) ) { |
43 | register_block_pattern_category( $name, $properties ); |
44 | } |
45 | } |
46 |
|
47 | $block_patterns = array( |
48 | 'footer-default', |