最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

custom taxonomy - If I want to create new taxonomies (e.g. ProjectDocumentsEtc...) is it better to create them in the theme&

programmeradmin1浏览0评论
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.

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 0
Add a comment  | 

1 Answer 1

Reset to default -1

I 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)?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论