wpseek.com
A WordPress-centric search engine for devs and theme authors



excerpt_allowed_wrapper_blocks › WordPress Filter Hooks

Since5.8.0
Deprecatedn/a
apply_filters( 'excerpt_allowed_wrapper_blocks', $allowed_wrapper_blocks )
Parameters:
  • (string[]) $allowed_wrapper_blocks The list of names of allowed wrapper blocks.
    Required: Yes
Defined at:
Codex:

Filters the list of blocks that can be used as wrapper blocks, allowing excerpts to be generated from the `innerBlocks` of these wrappers.





Source

$allowed_wrapper_blocks = apply_filters( 'excerpt_allowed_wrapper_blocks', $allowed_wrapper_blocks );