A WordPress-centric search engine for devs and theme authors



excerpt_length ›

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

Filters the number of words in an excerpt.





Source

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