This question already has answers here: Where to put my code: plugin or functions.php? (7 answers) Closed 5 years ago.admin管理员组文章数量:1400559
I'm trying to create new taxonomies. What is the best practice? Many thanks.
This question already has answers here: Where to put my code: plugin or functions.php? (7 answers) Closed 5 years ago.I'm trying to create new taxonomies. What is the best practice? Many thanks.
Share Improve this question asked Feb 7, 2020 at 17:23 duncanduncan 12 bronze badges 01 Answer
Reset to default -1I think it depends on the case. If the taxonomy is essential part of the theme, then functions.php might be appropriate place for registering it. If the taxonomy doesn't care which theme is in use on the site, then a custom plugin might be better place for it.
Please note that asking about best practices isn't quite on topic here as they can get rather opinion-based.
From meta: How should I ask for best practices (or should I not ask)?
本文标签:
版权声明:本文标题:custom taxonomy - If I want to create new taxonomies (e.g. ProjectDocumentsEtc...) is it better to create them in the theme& 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744767913a2624154.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论