bp_blogs_total_blogs()

Get the total number of blogs being tracked by BuddyPress.


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;
}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.