Filter hook 'wp_trim_words'

in WP Core File wp-includes/formatting.php at line 4083

Description

Filters the text content after words have been trimmed.

Occurrences

Filename Line Number
wp-includes/formatting.php 4083

Parameters

Type Name Description
string $text The trimmed text.
int $num_words The number of words to trim the text to. Default 55.
string $more An optional string to append to the end of the trimmed text, e.g. ….
string $original_text The text before it was trimmed.

PHP Doc

/**
	 * Filters the text content after words have been trimmed.
	 *
	 * @since 3.3.0
	 *
	 * @param string $text          The trimmed text.
	 * @param int    $num_words     The number of words to trim the text to. Default 55.
	 * @param string $more          An optional string to append to the end of the trimmed text, e.g. ….
	 * @param string $original_text The text before it was trimmed.
	 */