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

Filters the text content after words have been trimmed.


Parameters

$text

The trimmed text.

$num_words

The number of words to trim the text to. Default 55.

$more

An optional string to append to the end of the trimmed text, e.g. ….

$original_text

The text before it was trimmed.


Source

File: wp-includes/formatting.php

View on GitHub



Changelog

Changelog
Version Description
WP-3.3.0 Introduced.