thread_comments_depth_max хук-фильтрWP 2.7.0

Filters the maximum depth of threaded/nested comments.

Использование

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.
По умолчанию: 10

Список изменений

С версии 2.7.0 Введена.

Где вызывается хук

В файле: /wp-admin/options-discussion.php
thread_comments_depth_max
wp-admin/options-discussion.php 118
$maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 );

Где используется хук в WordPress

Использование не найдено.