the_excerpt_embed
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
wp-includes/embed.php 1038
echo apply_filters( 'the_excerpt_embed', $output );
Где используется хук в WordPress
wp-includes/default-filters.php 731
add_filter( 'the_excerpt_embed', 'wptexturize' );
wp-includes/default-filters.php 732
add_filter( 'the_excerpt_embed', 'convert_chars' );
wp-includes/default-filters.php 733
add_filter( 'the_excerpt_embed', 'wpautop' );
wp-includes/default-filters.php 734
add_filter( 'the_excerpt_embed', 'shortcode_unautop' );
wp-includes/default-filters.php 735
add_filter( 'the_excerpt_embed', 'wp_embed_excerpt_attachment' );