覆盖主题wordpress中的wedevs-dokan插件模板文件


override wedevs-dokan-plugin template file from theme wordpress

我正在为WordPress前端用户商店使用wedevs-dokan-plugin(wedevs.com/dokan(,它允许卖家从前端管理他们的商店。我想覆盖这个插件的一个模板文件。我要覆盖的文件位于:

plugins/wedevs-dokan-plugin/templates/product-edit.php

为了覆盖这个文件,我复制了这个文件并做了一些更改,将这个新文件放在主题目录中,如下所示:

themes/mytheme/wedevs-dokan-plugin/product-edit.php 

但这对我不起作用。之后我也尝试了:

themes/mytheme/wedevs-dokan-plugin/templates/product-edit.php

但这也不起作用。

有没有任何方法可以覆盖WordPress主题中的插件文件?

themes/mytheme/wedevs-dokan-plugin/product-edit.php 

目录名应该是"dokan",而不是"wedevs-dokan插件",并且您只能编辑该插件的"templates"目录文件。

因此,新目录将如下所示。

themes/mytheme/dokan/store.php
themes/mytheme/dokan/dashboard/dashboard.php

感谢