[wp-trac] [WordPress Trac] #61249: The character count in the post_excerpt is fine instead of counting words.

WordPress Trac noreply at wordpress.org
Mon May 20 20:02:12 UTC 2024


#61249: The character count in the post_excerpt is fine instead of counting words.
----------------------------------------+------------------------------
 Reporter:  sarkarripon                 |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Posts, Post Types           |     Version:  6.5.3
 Severity:  normal                      |  Resolution:
 Keywords:  dev-feedback needs-testing  |     Focuses:  administration
----------------------------------------+------------------------------

Comment (by dmsnell):

 @sarkarripon you may be interested in the
 [https://developer.wordpress.org/reference/hooks/wp_trim_excerpt/
 wp_trim_excerpt filter] which provides you the ability to further limit
 the generated excerpt, such as if it's longer than you want.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61249#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list