The native wordpress delete users page is unable to load for us, as we have hundreds of thousands of user accounts that it queries and loads into a drop down menu every time the page is loaded. Essentially our wordpress site has gotten so big that it's impossible to delete a user account using worpress's built in tool.
I can delete the user directly from the database, but I also want to attribute their content to someone. Is there another solution for deleting user accounts and attributing their content to another user?
The native wordpress delete users page is unable to load for us, as we have hundreds of thousands of user accounts that it queries and loads into a drop down menu every time the page is loaded. Essentially our wordpress site has gotten so big that it's impossible to delete a user account using worpress's built in tool.
I can delete the user directly from the database, but I also want to attribute their content to someone. Is there another solution for deleting user accounts and attributing their content to another user?
Share Improve this question asked Jun 18, 2019 at 21:56 Isaac MillerIsaac Miller 1 2- Are you able to use WP CLI? wp-cli – MikeNGarrett Commented Jun 18, 2019 at 22:01
- I've never used it but I believe its installed on our server. Can users be deleted and have their content reassigned via WP CLI? – Isaac Miller Commented Jun 18, 2019 at 22:16
1 Answer
Reset to default 0Using WP CLI, you can easily delete users without concerns about loading the WordPress UI.
wp user delete
is the command you're looking for.
In your case, use wp user delete 123 --reassign=567
for deleting a user by ID and reassigning to another user.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745389999a4625618.html
评论列表(0条)