bp_blogs_total_blogs()
Get the total number of blogs being tracked by BuddyPress.
Description Description
Return Return
(int) $count Total blog count.
Source Source
File: bp-blogs/bp-blogs-functions.php
function bp_blogs_total_blogs() { $count = wp_cache_get( 'bp_total_blogs', 'bp' ); if ( false === $count ) { $blogs = BP_Blogs_Blog::get_all(); $count = $blogs['total']; wp_cache_set( 'bp_total_blogs', $count, 'bp' ); } return $count; }