Delete Orphaned Users
-
Hi
I have a problem with a multisite network where the database contains a lot of records for users who are attached to sites that no longer exist. A user is attached to a site, as far as I can tell, when they have a wp_##_capabilities record in the usermeta table, where ## is the blog ID.
So I need a way to delete the records from the users and usermeta tables where those users don’t have capabilities defined for specified sites. Does anyone have any ideas? Happy to do with with a plugin or SQL.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Delete Orphaned Users’ is closed to new replies.