bbp_get_forum_reply_count

bbp_get_forum_reply_count

bbp_get_forum_reply_count
Codex Home → bbp_get_forum_reply_count
Description
The 『bbp_get_forum_reply_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 and returns total count for all replies in forum but not sub forums if true, must set $forum_id to work if true
Used by bbp_forum_reply_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 and not sub forums with a forum ID of 1

bbp_forum_post_count

bbp_forum_post_count

bbp_forum_post_count
Codex Home → bbp_forum_post_count
Description
The 『bbp_forum_post_count』 function is used to display the total count of all replies to topics within a forum and sub forums
How to use it
1
$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)
Uses bbp_get_forum_post_count()
Sample code example
1
Displays the total count of all replies within a forum and sub forums
1
Displays the count of all replies within a forum excluding sub forums of parent forum

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_loaded

bbp_loaded

bbp_loaded
Codex Home → bbp_loaded
The 『bbp_loaded』 action is hooked onto WordPress』s 『plugins_loaded』 action with default priority 10 in:
/includes/core/actions.php
It』s one of several 『piggy-back』 actions intended to help load code only when bbPress is active. It』s used to execute code early in the WordPress load order.
How it's hooked
add_action( 'plugins_loaded', 'bbp_loaded', 10 );
Where it's used
add_action( 'bbp_loaded', 'bbp_constants', 2 );
add_action( 'bbp_loaded', 'bbp_boot_strap_globals', 4 );
add_action( 'bbp_loaded', 'bbp_includes', 6 );
add_action( 'bbp_loaded', 'bbp_setup_globals', 8 );
add_action( 'bbp_loaded', 'bbp_setup_option_filters', 10 );
add_action( 'bbp_loaded', 'bbp_setup_user_option_filters', 12 );
add_action( 'bbp_loaded', 'bbp_register_theme_packages', 14 );
add_action( 'bbp_loaded', 'bbp_filter_user_roles_option', 16 );

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!

bbp_theme_after_forum_title

bbp_theme_after_forum_title

bbp_theme_after_forum_title
Codex Home → bbp_theme_after_forum_title
Description
The 『bbp_theme_after_forum_title』 action is used to display content after each forum title on the forum index pages.
Where it can be found
On line 20 of
/bbp-theme-compat/bbpress/loop-single-forum.php
/bbp-themes/bbp-twentyten/bbpress/loop-single-forum.php

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_title', 'jc_after_forum_title' );
function jc_after_forum_title() {
echo 'Hello world!';
}
Note: Always remember to prefix your functions to avoid conflicts!

bbp_theme_before_forum_title

bbp_theme_before_forum_title

bbp_theme_before_forum_title
Codex Home → bbp_theme_before_forum_title
Description
The 『bbp_theme_before_forum_title』 action is used to display content before each forum title on the forum index pages.
Where it can be found
On line 16 of
/bbp-theme-compat/bbpress/loop-single-forum.php
/bbp-themes/bbp-twentyten/bbpress/loop-single-forum.php
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_title', 'jc_before_forum_title' );function jc_before_forum_title() {     echo 'Hello world!';}
Note: Always remember to prefix your functions to avoid conflicts!