excerpt_allowed_wrapper_blocks WordPress Filter Hook
The excerpt_allowed_wrapper_blocks hook allows you to add additional HTML tags that can be used in the excerpt. This can be useful if you want to add custom formatting to your excerpts.
apply_filters( 'excerpt_allowed_wrapper_blocks', string[] $allowed_wrapper_blocks ) #
Filters the list of blocks that can be used as wrapper blocks, allowing excerpts to be generated from the innerBlocks
of these wrappers.
Parameters
- $allowed_wrapper_blocks
(string[])The list of names of allowed wrapper blocks.
Source
File: wp-includes/blocks.php
Changelog
Version | Description |
---|---|
5.8.0 | Introduced. |