bbp_topic_author_link

bbp_topic_author_link

bbp_topic_author_link
Codex Home → bbp_topic_author_link
Description
The 『bbp_topic_author_link』 function is used to display the current topic author』s user role, avatar and username linked to their profile
Where is it used
Templates: content-single-topic-lead.php
How to use it

$args (optional) – Accepts an array of arguments to configure display ( post_id, link_title, type, size, sep, show_role )
Uses bbp_get_topic_author_link()
Sample code example

Displays the linked avatar and username for the current topic author

‘, ‘show_role’ => true ) ); ?>
Displays the current topic author and user role separated by an HTML
element

‘, ‘show_role’ => true, ‘size’ => 32 ) ); ?>
Displays the current topic author and user role separated by an HTML
element and sets their avatar to a size of 32px wide and 32px tall

‘, ‘show_role’ => false, ‘type’ => ‘avatar’ ) ); ?>
Displays only the current topic author user』s avatar without their display name or user role

‘, ‘show_role’ => false, ‘type’ => ‘name’ ) ); ?>
Displays only the current topic author user』s display name without their avatar or user role
Related
bbp_author_link()
bbp_reply_author_link()
bbp_show_lead_topic()

上次修改 2021.12.25

報告拼寫錯誤

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