tptn_trim_char
Filters truncated string.
Type: filter
Since: 2.4.0
Source: includes/util/class-helpers.php line 280
Parameters
| Type | Name | Description |
|---|---|---|
string | $input | String to truncate. |
int | $count | Maximum number of characters to take. |
string | $more | What to append if $input needs to be trimmed. |
bool | $break_words | Optionally choose to break words. |
Usage
add_filter( 'tptn_trim_char', function($input, $count, $more, $break_words) {
// ...
return $input;
} );