admin管理员组文章数量:1302319
Is there a way to apply a global setting, so that get_template_part
always uses a predefined base path? For example, I always put my templates in a directory called 'template-parts', and it'd be nice to not have to always include that in the first argument string.
I know I could probably call a custom function that calls get_template_part
, but I was wondering if there was a slightly more elegant way of doing it.
本文标签: get template partCan I set a global base path for gettemplatepart
版权声明:本文标题:get template part - Can I set a global base path for get_template_part? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741685550a2392422.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论