Displays the post excerpt for the embed template.
Description
Intended to be used in ‘The Loop’.
Source
function the_excerpt_embed() {
$output = get_the_excerpt();
/**
* Filters the post excerpt for the embed template.
*
* @since 4.4.0
*
* @param string $output The current post excerpt.
*/
echo apply_filters( 'the_excerpt_embed', $output );
}
Hooks
- apply_filters( ‘the_excerpt_embed’,
string $output ) Filters the post excerpt for the embed template.
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.