the_excerpt_embed filter-hookWP 4.4.0

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()
the_excerpt_embed
wp-includes/embed.php 1017
echo apply_filters( 'the_excerpt_embed', $output );

Where the hook is used in WordPress

wp-includes/default-filters.php 659
add_filter( 'the_excerpt_embed', 'wptexturize' );
wp-includes/default-filters.php 660
add_filter( 'the_excerpt_embed', 'convert_chars' );
wp-includes/default-filters.php 661
add_filter( 'the_excerpt_embed', 'wpautop' );
wp-includes/default-filters.php 662
add_filter( 'the_excerpt_embed', 'shortcode_unautop' );
wp-includes/default-filters.php 663
add_filter( 'the_excerpt_embed', 'wp_embed_excerpt_attachment' );