wpseek.com
WordPress开发者和主题制作者的搜索引擎



excerpt_allowed_wrapper_blocks › WordPress过滤钩子

Since5.8.0
已弃用n/a
apply_filters( 'excerpt_allowed_wrapper_blocks', $allowed_wrapper_blocks )
参数:
  • (string[]) $allowed_wrapper_blocks The list of names of allowed wrapper blocks.
    Required: Yes
定义在:
文档:

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





源码

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