Wordpress 钩子:get_the_terms
文章目录
过滤附加到给定帖子的术语列表。
原型
apply_filters( 'get_the_terms', array|WP_Error $terms, int $post_id, string $taxonomy )
参数
$terms
(array|WP_Error)
附加条款列表,或失败时WP_Error。
$post_id
(int)
帖子ID。
$taxonomy
(string)
分类的名称。
源文件
路径:wp-includes/category-template.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/get_the_terms/
文章作者 iBllex
上次更新 2019-02-14