/**
 * Get a total count of all topics of a given status, across groups/forums.
 *
 * @since BuddyPress (1.5.0)
 *
 * @param string      $status       Which groups to count. 'public', 'private', 'hidden',
 *                                  'all'. Default: 'public'.
 * @param string|bool $search_terms Optional. Limit by a search term.
 *
 * @return int The topic count.
 */
function groups_total_forum_topic_count($status = 'public', $search_terms = false)
{
    /**
     * Filters the total count of all topics of a given status, across groups/forums.
     *
     * @since BuddyPress (1.5.0)
     *
     * @param int $value Total count of all topics.
     */
    return apply_filters('groups_total_forum_topic_count', BP_Groups_Group::get_global_topic_count($status, $search_terms));
}
/**
 * Get a total count of all topics of a given status, across groups/forums.
 *
 * @since BuddyPress (1.5.0)
 *
 * @param string $status Which groups to count. 'public', 'private', 'hidden',
 *        'all'. Default: 'public'.
 * @param string $search_terms Optional. Limit by a search term.
 * @return int The topic count.
 */
function groups_total_forum_topic_count($status = 'public', $search_terms = false)
{
    return apply_filters('groups_total_forum_topic_count', BP_Groups_Group::get_global_topic_count($status, $search_terms));
}