Filter: wpt_filter_truncated_value

apply_filters( 'wpt_filter_truncated_value', $new_value, $key, $old_value ) → {string}

Filter a template tag value after truncation. If a value like an excerpt or post content has been truncated, you can modify the output using this filter.

Parameters:
Name Type Description
$new_value string

Text truncated to maximum allowed length.

$key string

Template tag.

$old_value string

Text prior to truncation.

Source:
Returns:
Type
string