Recent

wherego_trim_char filter

wherego_trim_char

Filters truncated string.

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

Parameters

TypeNameDescription
string$inputString to truncate.
int$countMaximum number of characters to take.
string$moreWhat to append if $input needs to be trimmed.
bool$break_wordsOptionally choose to break words.

Usage

add_filter( 'wherego_trim_char', function($input, $count, $more, $break_words) {
    // ...
    return $input;
} );