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



excerpt_length ›

Since2.7.0
已弃用n/a
apply_filters( 'excerpt_length', $excerpt_length )
参数:
  • (int) $number The maximum number of words. Default 55.
    Required: Yes
定义在:
文档:

Filters the maximum number of words in a post excerpt.





源码

$excerpt_length = (int) apply_filters( 'excerpt_length', $excerpt_length );