function bp_blogs_remove_data($user_id) { if (!is_multisite()) { return false; } do_action('bp_blogs_before_remove_data', $user_id); // If this is regular blog, delete all data for that blog. BP_Blogs_Blog::delete_blogs_for_user($user_id); do_action('bp_blogs_remove_data', $user_id); }
function bp_blogs_remove_data( $user_id ) { if ( !bp_core_is_multisite() ) return false; /* If this is regular blog, delete all data for that blog. */ BP_Blogs_Blog::delete_blogs_for_user( $user_id ); do_action( 'bp_blogs_remove_data', $user_id ); }
/** * Remove all blog associations for a given user. * * @param int $user_id ID whose blog data should be removed. * @return bool|null Returns false on failure. */ function bp_blogs_remove_data($user_id) { if (!is_multisite()) { return false; } /** * Fires before all blog associations are removed for a given user. * * @since BuddyPress (1.5.0) * * @param int $user_id ID of the user whose blog associations are being removed. */ do_action('bp_blogs_before_remove_data', $user_id); // If this is regular blog, delete all data for that blog. BP_Blogs_Blog::delete_blogs_for_user($user_id); /** * Fires after all blog associations are removed for a given user. * * @since BuddyPress (1.0.0) * * @param int $user_id ID of the user whose blog associations were removed. */ do_action('bp_blogs_remove_data', $user_id); }
function bp_blogs_remove_data($user_id) { /* If this is regular blog, delete all data for that blog. */ BP_Blogs_Blog::delete_blogs_for_user($user_id); BP_Blogs_Post::delete_posts_for_user($user_id); BP_Blogs_Comment::delete_comments_for_user($user_id); do_action('bp_blogs_remove_data', $user_id); }