thread_comments_depth_max
Filters the maximum depth of threaded/nested comments.
Usage
add_filter( 'thread_comments_depth_max', 'wp_kama_thread_comments_depth_max_filter' );
/**
* Function for `thread_comments_depth_max` filter-hook.
*
* @param int $max_depth The maximum depth of threaded comments.
*
* @return int
*/
function wp_kama_thread_comments_depth_max_filter( $max_depth ){
// filter...
return $max_depth;
}
- $max_depth(int)
- The maximum depth of threaded comments.
Default: 10
Changelog
| Since 2.7.0 | Introduced. |
Where the hook is called
In file: /wp-admin/options-discussion.php
wp-admin/options-discussion.php 103
$maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 );