我可以找到的地方woocommerce_before_account_navigation"挂钩和饰品文件
这是我的帐户导航模板的代码,我需要更改并将一些类添加到在回调函数的DO_ACTION代码中呈现的模板中,我在Woocomceers的大多数文件中都搜索过,但是我找不到Hook的模板文件 ')
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
do_action( 'woocommerce_before_account_navigation' );
?>
“ do_action(' woocommerce_before_account_navigation
This is a code of my account navigation template and i need to change and add some classes to the template that rendered in do_action code that callback a function, i was search in most files of my woocomerce but i can not finde the template file for hook "do_action( 'woocommerce_before_account_navigation' )"
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
do_action( 'woocommerce_before_account_navigation' );
?>
any help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

此挂钩
woocommerce_before_account_navigation
可以在插件/woocommerce/templates/myaccount/navigation.php
第22行中看到This hook
woocommerce_before_account_navigation
can be seen atplugins/woocommerce/templates/myaccount/navigation.php
line 22