admin管理员组文章数量:1426072
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.
本文标签: adminHow do I delete a wordpress user from giant database
版权声明:本文标题:admin - How do I delete a wordpress user from giant database? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745389998a2656554.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论