Wordpress 如何创建自定义电子商务仪表板模板
我正在尝试为我的自定义woocommerce主题创建自定义woocommerce仪表板,但在尝试创建自定义woocommerce仪表板模板时发现一条错误消息Wordpress 如何创建自定义电子商务仪表板模板,wordpress,woocommerce,wordpress-theming,custom-wordpress-pages,Wordpress,Woocommerce,Wordpress Theming,Custom Wordpress Pages,我正在尝试为我的自定义woocommerce主题创建自定义woocommerce仪表板,但在尝试创建自定义woocommerce仪表板模板时发现一条错误消息 Deprecated: Your theme version of my-account.php template is deprecated since version 2.6! Use the latest version, which supports multiple account pages and navigation, fr
Deprecated: Your theme version of my-account.php template is deprecated since version 2.6! Use the latest version, which supports multiple account pages and navigation, from WC 2.6.0 instead.
我遵循了woocommerce模板模式(yourtheme/woocommerce/myaccount/my account.php.)
,但没有任何帮助。请参阅所附图片。如果我用define('wp\u DEBUG\u DISPLAY',false)编辑wp-config.php,问题就会消失代码>
谢谢
我找到了解决这个问题的办法。
我必须在my account.php
文件中使用这两个函数。
然后错误信息消失了
do_action( 'woocommerce_account_navigation' );
do_action( 'woocommerce_account_content' );
除非您已经在使用最新版本,否则错误消息似乎指示出哪里出了问题?(3.5.0版)我正在使用最新版本的插件