将产品类别类别更改为Hello(WooCommerce问题)
- 我们在WooCommerce中创建了一种产品。
- 然后,我们将类别分配给产品:CAT1,CAT2,CAT3。
几天后,我想启动一个脚本以将类别Cat2更改为所有产品中的Cat4。如何通过这样的php脚本对此进行操作: Run domain.de/start.php将把所有带有类别Cat2的产品更改为CAT4。
- We create an product in woocommerce.
- Then we assign categories: cat1, cat2, cat3 to product.
After some days i wanna start a script to change category cat2 to cat4 in all products. How do to that via php script like this:
run domain.de/start.php will change all products with category cat2 to cat4.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“ CAT-1”是旧类别,而“ CAT-2”是新的。
测试和工作
'cat-1' is old category and 'cat-2' is new.
Tested and working