thread_comments_depth_max filter-hookWP 2.7.0

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
thread_comments_depth_max
wp-admin/options-discussion.php 118
$maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 );

Where the hook is used in WordPress

Usage not found.