apply_filters( 'wp_trim_words', string $text, int $num_words, string $more, string $original_text )

Filters the text content after words have been trimmed.

Description Description

Parameters Parameters


(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.

Top ↑

Source Source

File: wp-includes/formatting.php

View on Trac

Top ↑

Changelog Changelog

Version Description
3.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.