admin管理员组文章数量:1326304
Softaculous seems to always adds junk to the installs I don't want. Such as example posts, pages, plugins, and starter themes. How do I remove them all for a fresh start?
Softaculous seems to always adds junk to the installs I don't want. Such as example posts, pages, plugins, and starter themes. How do I remove them all for a fresh start?
Share Improve this question edited Feb 12, 2020 at 21:43 Subtopic asked Feb 11, 2020 at 0:39 SubtopicSubtopic 114 bronze badges 1- Or... Don't use Softaculous :) – RiddleMeThis Commented Feb 12, 2020 at 21:52
1 Answer
Reset to default 0I'd love any improvements, or hopefully this helps someone.
wp post delete $(wp post list --post_type='post' --format=ids);wp post delete $(wp post list --post_type='page' --format=ids);wp plugin delete --all;wp theme delete $(wp theme list --status=inactive --field=name);wp widget delete $(wp widget list sidebar-1 --fields=id);wp widget delete $(wp widget list sidebar-2 --fields=id)
edit: added removal of default widgets in sidebar, all seems to work now!
本文标签:
版权声明:本文标题:linux - How to remove all plugins, posts, pages, and inactive themes in one line with wp-cli? WordPress bloatware removal 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742206964a2432993.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论