excerpt_allowed_blocks
apply_filters( ‘excerpt_allowed_blocks’, array $allowed_blocks )
过滤器::过滤可用于摘录的块的列表。
Filter Hook: Filters the list of blocks that can contribute to the excerpt.
说明(Description)
如果将动态块添加到此列表中,则它不能生成另一个摘录,因为这将导致发生无限循环。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$allowed_blocks | (array) | 允许块的列表。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.0.0 | wp-includes/blocks.php:380 | 1 | 0 |
excerpt_allowed_blocks 为WP2原创文章,链接:https://www.wp2.cn/hook/excerpt_allowed_blocks/