最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp cli - WP-CLI search-replace posts content for certain URLs

programmeradmin0浏览0评论

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.
发布评论

评论列表(0)

  1. 暂无评论