bp_get_total_blog_count_for_user( int $user_id )

Return the total number of blogs for a given user.


Parameters Parameters

$user_id

(int) (Required) ID of the user.


Top ↑

Return Return

(int) Total number of blogs for the user.


Source 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 1.2.0
		 * @since 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 );
	}


Top ↑

User Contributed Notes User Contributed Notes

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