我可以找到的地方woocommerce_before_account_navigation"挂钩和饰品文件

发布于 01-21 20:18 字数 322 浏览 3 评论 0原文

这是我的帐户导航模板的代码,我需要更改并将一些类添加到在回调函数的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如歌彻婉言2025-01-28 20:18:31

此挂钩woocommerce_before_account_navigation可以在插件/woocommerce/templates/myaccount/navigation.php第22行中看到

    /**
     * My Account navigation
     *
     * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/navigation.php.
     *
     * HOWEVER, on occasion WooCommerce will need to update template files and you
     * (the theme developer) will need to copy the new files to your theme to
     * maintain compatibility. We try to do this as little as possible, but it does
     * happen. When this occurs the version of the template file will be bumped and
     * the readme will list any important changes.
     *
     * @see     https://docs.woocommerce.com/document/template-structure/
     * @package WooCommerce\Templates
     * @version 2.6.0
     */

    if ( ! defined( 'ABSPATH' ) ) {
      exit;
    }

    do_action( 'woocommerce_before_account_navigation' );

This hook woocommerce_before_account_navigation can be seen at plugins/woocommerce/templates/myaccount/navigation.php line 22

    /**
     * My Account navigation
     *
     * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/navigation.php.
     *
     * HOWEVER, on occasion WooCommerce will need to update template files and you
     * (the theme developer) will need to copy the new files to your theme to
     * maintain compatibility. We try to do this as little as possible, but it does
     * happen. When this occurs the version of the template file will be bumped and
     * the readme will list any important changes.
     *
     * @see     https://docs.woocommerce.com/document/template-structure/
     * @package WooCommerce\Templates
     * @version 2.6.0
     */

    if ( ! defined( 'ABSPATH' ) ) {
      exit;
    }

    do_action( 'woocommerce_before_account_navigation' );
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文