参数 $terms (WP_Term[]|WP_Error) 所附加项目的数组,或失败时为WP_Error。 $post_id (int) 文章 ID $taxonomy (string) 分类法名称(taxonomy name) 相关被使用描述get_the_terms()检索附加到文章的分类法项目 源码查看源码 官方文档 更新日志版本描述3.1.0开始引入