admin管理员组

文章数量:1415420

Using WP-CLI I am wanting to search and replace posts content but only for certain URLs.

This is what I have so far:

$ wp search-replace 'Contact us today' 'Contact us today by filling in the form below' wp_posts --include-columns=post_content --dry-run

How can I adapt this command so that it only does the search replace on URLs within the products directory?

For example:

  • /
  • /
  • etc.

本文标签: wp cliWPCLI searchreplace posts content for certain URLs