the_excerpt_embed
Filters the post excerpt for the embed template.
Usage
add_filter( 'the_excerpt_embed', 'wp_kama_the_excerpt_embed_filter' ); /** * Function for `the_excerpt_embed` filter-hook. * * @param string $output The current post excerpt. * * @return string */ function wp_kama_the_excerpt_embed_filter( $output ){ // filter... return $output; }
- $output(string)
- The current post excerpt.
Changelog
Since 4.4.0 | Introduced. |
Where the hook is called
the_excerpt_embed
wp-includes/embed.php 1020
echo apply_filters( 'the_excerpt_embed', $output );
Where the hook is used in WordPress
wp-includes/default-filters.php 701
add_filter( 'the_excerpt_embed', 'wptexturize' );
wp-includes/default-filters.php 702
add_filter( 'the_excerpt_embed', 'convert_chars' );
wp-includes/default-filters.php 703
add_filter( 'the_excerpt_embed', 'wpautop' );
wp-includes/default-filters.php 704
add_filter( 'the_excerpt_embed', 'shortcode_unautop' );
wp-includes/default-filters.php 705
add_filter( 'the_excerpt_embed', 'wp_embed_excerpt_attachment' );