WordPress at a glance
filter is not described

get_the_excerpt filter-hook . WP 1.2.0

Filters the retrieved post excerpt.

Usage

add_filter( 'get_the_excerpt', 'filter_function_name_5535', 10, 2 );
function filter_function_name_5535( $post_excerpt, $post ){
	// filter...

	return $post_excerpt;
}
$post_excerpt(string)
The post excerpt.
$post(WP_Post)
Post object.

Notes

  • Since 4.5.0 Introduced the $post parameter.

Where the hook is called

get_the_excerpt()
wp-includes/post-template.php 397
return apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );

Where the hook is used (in WP core)

wp-includes/default-filters.php 172
add_filter( 'get_the_excerpt', 'wp_trim_excerpt' );