the_excerpt_embed хук-фильтрWP 4.4.0

Filters the post excerpt for the embed template.

Использование

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(строка)
The current post excerpt.

Список изменений

С версии 4.4.0 Введена.

Где вызывается хук

the_excerpt_embed()
the_excerpt_embed
wp-includes/embed.php 1019
echo apply_filters( 'the_excerpt_embed', $output );

Где используется хук в WordPress

wp-includes/default-filters.php 700
add_filter( 'the_excerpt_embed', 'wptexturize' );
wp-includes/default-filters.php 701
add_filter( 'the_excerpt_embed', 'convert_chars' );
wp-includes/default-filters.php 702
add_filter( 'the_excerpt_embed', 'wpautop' );
wp-includes/default-filters.php 703
add_filter( 'the_excerpt_embed', 'shortcode_unautop' );
wp-includes/default-filters.php 704
add_filter( 'the_excerpt_embed', 'wp_embed_excerpt_attachment' );