Filters the trimmed excerpt string.
Parameters
$textstring- The trimmed text.
$raw_excerptstring- The text prior to trimming.
Source
return apply_filters( 'wp_trim_excerpt', $text, $raw_excerpt );
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
Filters the trimmed excerpt string.
$textstring$raw_excerptstringreturn apply_filters( 'wp_trim_excerpt', $text, $raw_excerpt );
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
This disables the attempt to return an automatically generated excerpt in the scenario where one isn’t manually set.