wp_trim_excerpt filter-hook . WP 2.8.0
Filters the trimmed excerpt string.
Usage
add_filter( 'wp_trim_excerpt', 'filter_function_name_4048', 10, 2 ); function filter_function_name_4048( $text, $raw_excerpt ){ // filter... return $text; }
- $text(string)
- The trimmed text.
- $raw_excerpt(string)
- The text prior to trimming.
Changelog
Since 2.8.0 | Introduced. |
Where the hook is called
wp-includes/formatting.php 3856
return apply_filters( 'wp_trim_excerpt', $text, $raw_excerpt );