Opened 16 years ago
Closed 16 years ago
#7778 closed enhancement (fixed)
Excerpt length enhancement
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | excerpts, wp_trim_excerpt, excerpt_length |
Focuses: | Cc: |
Description
I had a client who wanted a different excerpt length than the default (55 words). I quickly realized that the only way to do it currently is to copy the existing wp_trim_excerpt() function, remove the default filter, and add your custom filter.
This would be made much simpler by simply applying a filter on the $excerpt_length variable. Diff attached.
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Add a filter on $excerpt_length so that plugins can adjust it