excerpt_length хук-фильтр . WP 2.7.0
Filters the maximum number of words in a post excerpt.
Использование
add_filter( 'excerpt_length', 'filter_function_name_4047' ); function filter_function_name_4047( $number ){ // filter... return $number; }
- $number(число)
- The maximum number of words.
По умолчанию: 55
Список изменений
С версии 2.7.0 | Введена. |
Где вызывается хук
wp-includes/formatting.php 3804
$excerpt_length = (int) apply_filters( 'excerpt_length', $excerpt_length );