bbp_show_lead_topic( $show_lead = false )
The plugin version of bbPress comes with two topic display options: – Traditional: Topics are included in the reply loop (default) – New Style: Topics appear as “lead” posts, ahead of replies
Description Description
Parameters Parameters
- $show_lead
-
(Optional) Default false
Default value: false
Return Return
(bool) Yes if the topic appears as a lead, otherwise false
Source Source
File: includes/topics/template.php
function bbp_show_lead_topic( $show_lead = false ) {
// Never separate the lead topic in feeds
if ( is_feed() ) {
return false;
}
// Filter & return
return (bool) apply_filters( 'bbp_show_lead_topic', (bool) $show_lead );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |