[wp-trac] [WordPress Trac] #37088: Add filter to wp_strip_all_tags in wp_trim_words

WordPress Trac noreply at wordpress.org
Mon Jun 13 15:39:44 UTC 2016


#37088: Add filter to wp_strip_all_tags in wp_trim_words
---------------------------+------------------------------
 Reporter:  manuelmeister  |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Formatting     |     Version:  4.5
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------
Changes (by swissspidy):

 * focuses:  template =>
 * component:  Posts, Post Types => Formatting


Comment:

 The original text is passed to the `wp_trim_words` filter. You can hook
 into that and strip off whatever you want. Doesn't that suffice?

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


More information about the wp-trac mailing list