thread_comments_depth_max WordPress Filter Hook

The thread_comments_depth_max hook is used to control the maximum depth of threaded comments. By default, threaded comments are limited to a depth of 10. This hook can be used to increase or decrease that limit.

apply_filters( 'thread_comments_depth_max', int $max_depth ) #

Filters the maximum depth of threaded/nested comments.


Parameters

$max_depth

(int)The maximum depth of threaded comments. Default 10.


Top ↑

Source

File: wp-admin/options-discussion.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.