Recent

tptn_excerpt_pre_trimfilter

tptn_excerpt_pre_trim

Filters excerpt generated by CRP before it is trimmed.

Type: filter
Since: 4.0.0
Source: includes/frontend/class-display.php line 994

Parameters

Type Name Description
string $output Formatted excerpt.
\WP_Post $post Source Post instance.
int $excerpt_length Length of the excerpt.
boolean $use_excerpt Use the excerpt?
string $content Content that is used to create the excerpt.

Usage

add_filter( 'tptn_excerpt_pre_trim', function($output, $post, $excerpt_length, $use_excerpt, $content) {
    // ...
    return $output;
} );