bp_blogs_remove_user_from_blog( int $user_id, int $blog_id )
Remove a blog-user pair from BP’s blog tracker.
Description
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
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 );
}
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.