Any advice on how to clone a website to a staging without including user related data?

[ad_1]

Basically title. We want our staging site to be void of any relevant customer information (user names, emails, etc.) but we do periodically clone to ensure settings and things are the same. I’d rather avoid needing to remove the users manually each time since there about 2k. Is there anyway to clone everything except users?

[ad_2]
1 Comment
  1. Easiest method would be to run a WP CLI user delete command after you’ve performed the migration to staging.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer