bbp_show_lead_topic( $show_lead = false )

The plugin version of Forums 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

Parameters

$show_lead

(Optional) Default false

Default value: false

Return

(bool) Yes if the topic appears as a lead, otherwise false

Source

File: bp-forums/topics/template.php

function bbp_show_lead_topic( $show_lead = false ) {

	// Never separate the lead topic in feeds
	if ( is_feed() )
		return false;

	return (bool) apply_filters( 'bbp_show_lead_topic', (bool) $show_lead );
}

Changelog

Changelog
Version Description
bbPress (r2954) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.