问题描述
我正在尝试为自定义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 );
谢谢
解决方法
我找到了解决方案。
我必须在<TargetFramework>netcoreapp3.1</TargetFramework>
文件中使用这两个函数。
然后错误消息消失了。
my-account.php