Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix WP CLI Search-Replace Wildcard Usage

Discussion in 'Misc WordPress Requests' started by calimer, Feb 17, 2018.

  1. calimer


    WP CLI Search-Replace Wildcard Usage, by calimer

    Hi!! I’m trying to remove some code from my databases using WP CLI but I’m having trouble with the search-replace wildcards. I’ve so far been unable to find an example of the syntax.

    This is what I have so far:
    wp search-replace ‘<noindex><script id=”wpinfo-pst1″*</script></noindex>’ ” wp_posts wp_postmeta wp_terms –dry-run

    I want to clear all the text that includes, and is between:
    <noindex><script id=”wpinfo-pst1″

    Thank you so much for your time!

    WP CLI Search-Replace Wildcard Usage

Share This Page

Monarch Social Sharing Plugin