Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ValeriiVasyliev/70fdc2330f68e9715c4880e14153d13f to your computer and use it in GitHub Desktop.
Save ValeriiVasyliev/70fdc2330f68e9715c4880e14153d13f to your computer and use it in GitHub Desktop.
WP CLI search and replace URLs for WordPress multisite

If you are using subdirectories on multisite

wp search-replace  --network 'example.com' 'example.test'  --all-tables --dry-run 

then

wp search-replace  --network 'example.com' 'example.test'  --all-tables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment