excerpt_more хук-фильтр . WP 2.9.0
Filters the string in the "more" link displayed after a trimmed excerpt.
Использование
add_filter( 'excerpt_more', 'filter_function_name_3255' ); function filter_function_name_3255( $more_string ){ // filter... return $more_string; }
- $more_string(строка)
- The string shown within the more link.
Список изменений
С версии 2.9.0 | Введена. |
Где вызывается хук
wp-includes/formatting.php 3844
$excerpt_more = apply_filters( 'excerpt_more', ' ' . '[…]' );
Где используется хук в ядре WordPress
wp-includes/formatting.php 594
add_filter( 'excerpt_more', 'wp_embed_excerpt_more', 20 );