bp_blogs_total_blogs()

Get the total number of blogs being tracked by BuddyPress.


Description Description


Return Return

(int) $count Total blog count.


Top ↑

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.