/** * Get a total count of all public topics of a given type, across groups/forums. * * @since BuddyPress (1.5.0) * * @param string $type Either 'newest', 'popular', 'unreplied', 'tags'. * Default: 'newest'. * * @return int The topic count. */ function groups_total_public_forum_topic_count($type = 'newest') { /** * Filters the total count of all public topics of a given type, across groups/forums. * * @since BuddyPress (1.1.0) * * @param int $value Total count of all public topics. */ return apply_filters('groups_total_public_forum_topic_count', BP_Groups_Group::get_global_forum_topic_count($type)); }
/** * Get a total count of all public topics of a given type, across groups/forums. * * @since BuddyPress (1.5.0) * * @param string $type Either 'newest', 'popular', 'unreplied', 'tags'. * Default: 'newest'. * @return int The topic count. */ function groups_total_public_forum_topic_count($type = 'newest') { return apply_filters('groups_total_public_forum_topic_count', BP_Groups_Group::get_global_forum_topic_count($type)); }