wzkb_register_blocks
Filter the list of blocks to register.
Allows Pro (or other extensions) to add additional blocks.
Type: filter
Since: 3.0.0
Source: includes/blocks/class-blocks.php line 105
Parameters
| Type | Name | Description |
|---|---|---|
array | $blocks | Associative array of block slug => render callback (string method name or callable). |
Usage
add_filter( 'wzkb_register_blocks', function($blocks) {
// ...
return $blocks;
} );