Used By
Used By | Description |
---|---|
wp-includes/formatting.php: wp_trim_words() | Trims text to a certain number of words. |
Filters the text content after words have been trimmed.
(string) The trimmed text.
(int) The number of words to trim the text to. Default 55.
(string) An optional string to append to the end of the trimmed text, e.g. ….
(string) The text before it was trimmed.
Version | Description |
---|---|
3.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_trim_words