excerpt_remove_blocks()
excerpt_remove_blocks( string $content )
从内容字符串中解析块,并呈现适合于摘录的块。
Parses blocks out of a content string, and renders those appropriate for the excerpt.
说明(Description)
由于摘录应该是与完整文章内容相关的一小串文本,因此此函数将呈现最可能包含此类文本的块。
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$content | (string) | 必需 | 要分析的内容。 |
返回(Return)
(string)已分析和筛选的内容。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.0.0 | wp-includes/blocks.php:351 | 1 function | 5 |
excerpt_remove_blocks() 为WP2原创文章,链接:https://www.wp2.cn/functions/excerpt_remove_blocks/