WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about wp_trim_words

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/formatting.php apply_filters 3980 /**
* 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.
*/

Hook Parameters

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