bbp_show_lead_topic

bbp_show_lead_topic

bbp_show_lead_topic
Codex Home → bbp_show_lead_topic
Description
The 『bbp_show_lead_topic』 function is an alternate layout style where topics appear as 「lead」 posts, ahead of replies whereas by default topics are included in the reply loop.
How to use it
When set to $show_lead = true the 『Lead Topic』 uses the single topic part content-single-topic-lead.php allowing you to style the lead topic separately from the main reply loop. It』s also useful if you want to add some ads or a simple note to your readers after the lead topic before the replies.
Sample code example
function custom_bbp_show_lead_topic( $show_lead ) {
$show_lead[] = ‘true’;
return $show_lead;
}

add_filter(‘bbp_show_lead_topic’, ‘custom_bbp_show_lead_topic’ );

上次修改 2021.12.25

報告拼寫錯誤

以下文本將發送給我們的編輯: