【发布时间】:2020-01-17 13:38:44
【问题描述】:
我是开发 Wordpress 和 WooCommerce 的新手,我正在尝试使用子主题自定义 Storefront 主题。
例如,我想删除header.php的产品搜索。
在 header.php 中有一条注释:
* @hooked storefront_product_search - 40
操作“storefront_header”
但在 storefront-template-hooks.php 中,我无法找到添加到函数“storefront_product_search”的操作,如前所述。
当我在 storefront-template-functions.php 中搜索函数“storefront_product_search”时,我也没有找到。
这个函数在哪里?
另外一个问题,有没有用于 php/wordpress 开发的前向导航 IDE?
我目前正在使用 Visual Studio Code
【问题讨论】:
-
搜索店面文件夹中的所有文件,而不是单个文件
-
谢谢,我在“storefront-woocommerce-template-functions.php”文件中找到了它。只是为了确定,为什么这个文件中的函数而不是“storefront-template-functions.php”?
标签: php wordpress woocommerce