bbp_thread_replies()
Are replies threaded?
Description Description
Parameters Parameters
- $default
-
(Optional) Default value true
Return Return
(bool) Are replies threaded?
Source Source
File: includes/replies/functions.php
function bbp_thread_replies() {
$depth = bbp_thread_replies_depth();
$allow = bbp_allow_threaded_replies();
// Never thread replies on user profile pages. It looks weird, and we know
// it is undesirable for the majority of installations.
if ( bbp_is_single_user_replies() ) {
$retval = false;
} else {
$retval = (bool) ( ( $depth >= 2 ) && ( true === $allow ) );
}
// Filter & return
return (bool) apply_filters( 'bbp_thread_replies', $retval, $depth, $allow );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.6.0 | bbPress (r6245) Always false on user profile reply pages |
| 2.4.0 | Introduced. |