Filters the list of blocks that can contribute to the excerpt.
If a dynamic block is added to this list, it must not generate another excerpt, as this will cause an infinite loop to occur.
$allowed_blocksstring[]
$allowed_blocks = apply_filters( 'excerpt_allowed_blocks', $allowed_blocks );
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/excerpt_allowed_blocks