bp_get_total_blog_count_for_user( int $user_id )
Return the total number of blogs for a given user.
Description
Parameters
- $user_id
-
(Required) ID of the user.
Return
(int) Total number of blogs for the user.
Source
File: bp-blogs/bp-blogs-template.php
function bp_get_total_blog_count_for_user( $user_id = 0 ) {
/**
* Filters the total number of blogs for a given user.
*
* @since BuddyPress 1.2.0
* @since BuddyPress 2.6.0 Added the `$user_id` parameter.
*
* @param int $value Total number of blogs for a given user.
* @param int $user_id ID of the queried user.
*/
return apply_filters( 'bp_get_total_blog_count_for_user', bp_blogs_total_blogs_for_user( $user_id ), $user_id );
}
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.