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 1038
echo apply_filters( 'the_excerpt_embed', $output );
Where the hook is used in WordPress
wp-includes/default-filters.php 737
add_filter( 'the_excerpt_embed', 'wptexturize' );
wp-includes/default-filters.php 738
add_filter( 'the_excerpt_embed', 'convert_chars' );
wp-includes/default-filters.php 739
add_filter( 'the_excerpt_embed', 'wpautop' );
wp-includes/default-filters.php 740
add_filter( 'the_excerpt_embed', 'shortcode_unautop' );
wp-includes/default-filters.php 741
add_filter( 'the_excerpt_embed', 'wp_embed_excerpt_attachment' );