bbp_get_single_topic_description
Codex Home → bbp_get_single_topic_description
bbp_get_single_topic_description
標籤: developer
bbp_get_breadcrumb
bbp_get_breadcrumb
Codex Home → bbp_get_breadcrumb
bbp_get_breadcrumb
bbp_breadcrumb
bbp_breadcrumb
Codex Home → bbp_breadcrumb
bbp_breadcrumb
bbp_single_topic_description
bbp_single_topic_description
Codex Home → bbp_single_topic_description
bbp_single_topic_description
bbp_reply_admin_links
bbp_reply_admin_links
Codex Home → bbp_reply_admin_links
bbp_reply_admin_links
bbpress-functions.php 論壇功能檔案
bbpress-functions.php
Codex Home → bbpress-functions.php
This page has no content of its own, but contains some sub-pages listed in the sidebar.
Please edit this page and add something helpful!
bbp_theme_before_topic_author
bbp_theme_before_topic_author
Codex Home → bbp_theme_before_topic_author
Description
The 『bbp_theme_before_topic_author』 action is used to display content before the author』s avatar and name in a forum
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_topic_author', 'jc_before_topic_author' );function jc_before_topic_author() { echo 'Hello world!';}
Note: Always remember to prefix your functions to avoid conflicts!
bbp_theme_after_topic_author
bbp_theme_after_topic_author
Codex Home → bbp_theme_after_topic_author
Description
The 『bbp_theme_after_topic_author』 action is used to display content after the author』s avatar and name in a forum
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_after_topic_author', 'jc_after_topic_author' );function jc_after_topic_author() { echo 'Hello world!';}
Note: Always remember to prefix your functions to avoid conflicts!
bbp_forum_last_active_id
bbp_forum_last_active_id
Codex Home → bbp_forum_last_active_id
Description
The 『bbp_forum_last_active_id』 function displays the ID of the most recently active forum
How to use it
$forum_id (optional) – Displays the ID of the most recently active forum
Uses bbp_get_forum_last_active_id()
Sample code example
Displays the ID of the most recently active forum
Displays the ID of the most recent reply within the specified forum
bbp_get_forum_last_active_id
bbp_get_forum_last_active_id
Codex Home → bbp_get_forum_last_active_id
Description
The 『bbp_get_forum_last_active_id』 function returns the ID of the most recent reply within a forum
How to use it
1
$forum_id (optional) – Returns the ID of the most recent reply within the specified forum
Used in bbp_forum_last_active_id()
Sample code example
1
Returns the ID of the most recent reply within a forum
1
Returns the ID of the most recent reply within the specified forum