A WordPress-centric search engine for devs and theme authors



excerpt_length ›

Since2.7.0
Deprecatedn/a
apply_filters( 'excerpt_length', $excerpt_length )
Parameters:
  • (int) $number The maximum number of words. Default 55.
    Required: Yes
Defined at:
Codex:

Filters the maximum number of words in a post excerpt.





Source

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