bbp_get_forum_post_count

bbp_get_forum_post_count

bbp_get_forum_post_count
Codex Home → bbp_get_forum_post_count
Description
The 『bbp_get_forum_post_count』 function is used to return the total count of all replies to topics within a forum and sub forums
How to use it

$forum_id (optional) – Returns count for particular forum id
$total_count (optional) – Returns total count for all replies in forum and sub forums by default or if true, otherwise returns total count for all replies in a forum not including replies in subforum(s)
Used in bbp_forum_post_count()
Sample code example

Returns the total count of all replies within a forum and sub forums

Returns the count of all replies within a forum excluding sub forums of parent forum

bbp_theme_before_forum_freshness_link

bbp_theme_before_forum_freshness_link

bbp_theme_before_forum_freshness_link
Codex Home → bbp_theme_before_forum_freshness_link
Description
The 『bbp_theme_before_forum_freshness_link』 action is used to display content before the forum freshness link
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_freshness_link', 'jc_before_forum_freshness_link' );function jc_before_forum_freshness_link() {     echo 'Hello world!';}
Note: Always remember to prefix your functions to avoid conflicts!

bbp_forum_freshness_link

bbp_forum_freshness_link

bbp_forum_freshness_link
Codex Home → bbp_forum_freshness_link
Description
The 『bbp_forum_freshness_link』 function displays a link to the most recent reply within a forum
How to use it
1
$forum_id (optional) – Displays link to the most recent activity within defined forum
Uses bbp_get_forum_freshness_link()
Sample code example
1
Displays a link to the most recent reply within a forum
1
Displays the link to the most recent reply within the specified forum

bbp_get_forum_freshness_link

bbp_get_forum_freshness_link

bbp_get_forum_freshness_link
Codex Home → bbp_get_forum_freshness_link
How to use it
1
$forum_id (optional) – Returns the link for the most recent reply within a forum
Used in bbp_forum_freshness_link()
Sample code example
1
Returns the link for the most recent reply within a forum
1
Returns the link for the most recent reply within the specified forum with an ID of 1

bbp_theme_after_forum_freshness_link

bbp_theme_after_forum_freshness_link

bbp_theme_after_forum_freshness_link
Codex Home → bbp_theme_after_forum_freshness_link
Description
The 『bbp_theme_after_forum_freshness_link』 action is used to display content after the forum freshness link
How to use it
Since this is an action, we can use add_action to hook into it.
Sample code example
add_action( 'bbp_theme_after_forum_freshness_link', 'jc_after_forum_freshness_link' );
function jc_after_forum_freshness_link() {
echo 'Hello world!';
}
Note: Always remember to prefix your functions to avoid conflicts!

bbp_theme_before_topic_author

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_author_link

bbp_author_link

bbp_author_link
Codex Home → bbp_author_link
Description
The 『bbp_author_link』 function is used to display the most recently active author』s avatar and username linked to their profile
How to use it

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

Displays the linked avatar and username for the most recently active author in a forum
1 ) ); ?>
Displays the most recently active user from the topic with an ID of 1
bbp_get_forum_last_active_id(), 'size' => 32 ) ); ?>
Displays the most recently active user within the forum and sets their avatar to a size of 32px wide and 32px tall
bbp_get_forum_last_active_id(), 'link_title' => 'Author profile' ) ); ?>
Displays the most recently active user within the forum and sets the title of their linked avatar and username to 「Author profile」
bbp_get_forum_last_active_id(), 'type' => 'avatar' ) ); ?>
Displays only the most recently active user』s avatar without their display name
bbp_get_forum_last_active_id(), 'type' => 'name' ) ); ?>
Displays only the most recently active user』s display name without their avatar
Related
bbp_reply_author_link()
bbp_topic_author_link()

bbp_get_forum_last_active_id

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

bbp_forum_last_active_id

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_theme_after_topic_author

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!