Created
April 21, 2020 06:24
-
-
Save wptraining/ad1bbdf9dff31f8bf4bc6a1597501f19 to your computer and use it in GitHub Desktop.
Things you can do with wp-cli
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
# Search and replace a custom table and core table | |
wp search-replace "old-string" "new-string" wp_custom_table wp_posts | |
# Search and replace all tables, including custom tables | |
wp search-replace "old-string" "new-string" --all-tables |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment