bp_blogs_remove_user_from_blog( int $user_id, int $blog_id )

Remove a blog-user pair from BP’s blog tracker.

Parameters Parameters


(int) (Required) ID of the user whose blog is being removed.


(int) (Optional) ID of the blog being removed. Default: current blog ID.

Source Source

File: bp-blogs/bp-blogs-functions.php

function bp_blogs_remove_user_from_blog( $user_id, $blog_id = 0 ) {
	global $wpdb;

	if ( empty( $blog_id ) ) {
		$blog_id = $wpdb->blogid;

	bp_blogs_remove_blog_for_user( $user_id, $blog_id );

Top ↑

User Contributed Notes User Contributed Notes

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