thread_comments_depth_max хук-фильтр . WP 2.7.0
Filters the maximum depth of threaded/nested comments.
Использование
add_filter( 'thread_comments_depth_max', 'filter_function_name_8804' ); function filter_function_name_8804( $max_depth ){ // filter... return $max_depth; }
- $max_depth(число)
- The maximum depth of threaded comments.
По умолчанию: 10
Список изменений
С версии 2.7.0 | Введена. |
Где вызывается хук
В файле: /wp-admin/options-discussion.php
wp-admin/options-discussion.php 106
$maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 );