Recent

tptn_trim_char filter

tptn_trim_char

Filters truncated string.

Type: filter
Since: 2.4.0
Source: includes/util/class-helpers.php line 280

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