Recent

tptn_excerptfilter

tptn_excerpt

Filters excerpt generated by CRP.

Type: filter
Since: 1.9.10.1
Source: includes/frontend/class-display.php line 1061

Changelog

Version Description
4.0.0 Changed second parameter to WP_Post instance instead of ID.
1.9.10.1 Introduced.

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?

Usage

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