Skip to content

Instantly share code, notes, and snippets.

@cagrimmett
Created July 23, 2017 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cagrimmett/b602d8c5d6939ae05da55ae344d0f836 to your computer and use it in GitHub Desktop.
Save cagrimmett/b602d8c5d6939ae05da55ae344d0f836 to your computer and use it in GitHub Desktop.
SQL query to replace text on WordPress sites
UPDATE wp_posts SET post_content = REPLACE(post_content, 'FIND', 'REPLACE');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment