admin管理员组文章数量:1323688
I know woo-commerce has it's own way of providing custom php templates in a child theme for its various views. I'm wondering if all plugins adhere to a standard way doing the same. For example, I'm using a plugin with a template located at wp-content/plugins/PLUGIN_NAME/templates/view-x.php
. Is there a standard location in my child theme that I can create my own custom view-x.php that will override the default version? Or does it vary from plugin to plugin?
I know woo-commerce has it's own way of providing custom php templates in a child theme for its various views. I'm wondering if all plugins adhere to a standard way doing the same. For example, I'm using a plugin with a template located at wp-content/plugins/PLUGIN_NAME/templates/view-x.php
. Is there a standard location in my child theme that I can create my own custom view-x.php that will override the default version? Or does it vary from plugin to plugin?
1 Answer
Reset to default 1There's no standard way to replace plugin files from a theme. It's up to each individual plugin to provide support for this, and many don't. If a plugin does support it, the correct way to do it would be specific to that plugin. You will need to consult a plugin's developer documentation to see whether or not they support anything like this, or an alternative.
本文标签: standard custom page template hierarchy for plugins
版权声明:本文标题:standard custom page template hierarchy for plugins 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742138994a2422497.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论