bp_blogs_remove_user_from_blog( int $user_id, int $blog_id )
Remove a blog-user pair from BP’s blog tracker.
Description Description
Parameters Parameters
- $user_id
-
(Required) ID of the user whose blog is being removed.
- $blog_id
-
(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 ); }