如何创建自定义woocommerce仪表板模板

时间:2020-09-07 11:35:55

标签: wordpress woocommerce wordpress-theming custom-wordpress-pages

我正在尝试为自定义wordpress主题创建自定义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, from WC 2.6.0 instead.

我遵循woocommerce模板模式(yourtheme/woocommerce/myaccount/my-account.php.),但没有帮助。请参阅所附图片。如果我使用define( 'WP_DEBUG_DISPLAY', false );

编辑wp-config.php,问题将消失

谢谢

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)

我找到了解决方案。 我必须在<TargetFramework>netcoreapp3.1</TargetFramework> 文件中使用这两个函数。 然后错误消息消失了。

my-account.php
相关问题