bbp_theme_before_forum_sub_forums

bbp_theme_before_forum_sub_forums

bbp_theme_before_forum_sub_forums
Codex Home → bbp_theme_before_forum_sub_forums
Description
The 『bbp_theme_before_forum_sub_forums』 action is used to display content before each list of sub forum links.
Where it can be found
On line 22 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_sub_forums’, ‘jc_before_sub_forum_list’ );function jc_before_sub_forum_list() {     echo ‘Hello world!’;}
Note: Always remember to prefix your functions to avoid conflicts!

上次修改 2021.12.25

報告拼寫錯誤

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