Last active
March 14, 2023 17:23
-
-
Save tpitre/114bcb9c52ecd625c06df0e60b6cf19e to your computer and use it in GitHub Desktop.
WP CLI CSV Import with Terminus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Loop through the CSV file and run the WP CLI command | |
while IFS=, read orig new; do | |
terminus wp pom-ool.dev --skip-themes --skip-plugins search-replace "$orig" "$new" wp_posts --include-columns=post_content --verbose | |
done < ool-cleanup-tab1-2.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment