WordPress at Your Fingertips
filter is not described

wp_trim_words filter-hook . WP 3.3.0

Filters the text content after words have been trimmed.


add_filter( 'wp_trim_words', 'filter_function_name_3128', 10, 4 );
function filter_function_name_3128( $text, $num_words, $more, $original_text ){
	// filter...

	return $text;
The trimmed text.
The number of words to trim the text to.
Default: 55
An optional string to append to the end of the trimmed text, e.g. ….
The text before it was trimmed.

Where the hook is called

wp-includes/formatting.php 3921
return apply_filters( 'wp_trim_words', $text, $num_words, $more, $original_text );

Where in WP core the hook is used WordPress

Usage not found.