the_excerpt()
the_excerpt() 显示文章摘要。 Display the post excerpt. 目录锚点:#参…
the_excerpt()
显示文章摘要。
Display the post excerpt.
目录锚点:#参数#源码#笔记
参数(Parameters)
| 参数 | 类型 | 说明 |
|---|
源码(Source)
/**
* Display the post excerpt.
*
* @since 0.71
*/
function the_excerpt() {
/**
* Filter the displayed post excerpt.
*
* @since 0.71
*
* @see get_the_excerpt()
*
* @param string $post_excerpt The post excerpt.
*/
echo apply_filters( 'the_excerpt', get_the_excerpt() );
}| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 0.71 | wp-includes/post-template.php | 8 | 20 |
笔记(Notes)
使用筛选器控制摘录长度
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。
还没有任何评论,赶紧来占个楼吧!