Recent

wherego_trim_charfilter

wherego_trim_char

Filters truncated string.

Type: filter
Since: 3.1.0
Source: includes/util/class-helpers.php line 62

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( 'wherego_trim_char', function($input, $count, $more, $break_words) {
    // ...
    return $input;
} );