bbp_theme_before_forum_description

bbp_theme_before_forum_description

bbp_theme_before_forum_description
Codex Home → bbp_theme_before_forum_description
Description
The 『bbp_theme_before_forum_description』 action is used to display content before the description of the forum on forum index pages.
Where it can be found
On line 28 of
/bbp-theme-compat/bbpress/loop-single-forum.php
/bbp-themes/bbp-twentyten/bbpress/loop-single-forum.php
1
How to use it
Since this is an action, we can use add_action to hook into it.
Sample code example
1234add_action( 'bbp_theme_before_forum_description', 'jc_before_forum_description' );function jc_before_forum_description() {     echo 'Hello world!';}
Note: Always remember to prefix your functions to avoid conflicts!

發表回覆

您的電子郵箱地址不會被公開。 必填項已用 * 標註

報告拼寫錯誤

以下文字將傳送給我們的編輯: