WooCommerce 4.7修改了product_cat/tag模板文件命名

版本包含WooCommerce Admin(1.6.3)和WooCommerce块(3.6.0)的更新版本

主页 \ WordPress资讯 \ WooCommerce 4.7修改了product_cat/tag模板文件命名
最后更新:
浏览量: 664
作者:
分类:WordPress资讯
评论: 1

WooCommerce 4.7.0已于今天发布。它是次要发行版,这意味着它与以前的版本向后兼容。

此版本包含WooCommerce Admin(1.6.3)和WooCommerce块(3.6.0)的更新版本,较小的修复和本地化改进。最为显着地:

  • product_cat / tag 分类法模板文件名已更新为product-cat和product-tag。
  • 草稿页面现已从“商店页面”设置中排除。

添加了过滤器

过滤器 描述
woocommerce_should_send_low_stock_notification 确定当前产品是否应该触发库存不足通知。

模板变更

WooCommerce 4.7.0中添加了三个新文件

文件 描述
content-product-cat.php 用来替换 content-product_cat.php
taxonomy-product-cat.php 用来替换 taxonomy-product_cat.php
taxonomy-product-tag.php 用来替换 taxonomy-product_tag.php

WooCommerce仍支持替换的content-product_cat.phptaxonomy-product_cat.phptaxonomy-product_tag.php 文件。

注意:虽然旧文件仍然可以使用,但是您需要在某些时候重命名它们,因为有关这些模板的任何更改都将引入到新模板中,并且如果主题或插件仍然具有旧模板,WooCommerce将不会通知您上述更改。

相关文章

1 评论在 “WooCommerce 4.7修改了product_cat/tag模板文件命名

大神,别默默的看了,快来点评一下吧!:)

微信
添加站长微信

微信扫一扫,联系我们

关注
关注公众号

关注微信公众号