wpseek.com
WordPress开发者和主题制作者的搜索引擎
has_term › WordPress Function
Since3.1.0
已弃用n/a
› has_term ( $term = '', $taxonomy = '', $post = null )
参数: (3) |
|
返回: |
|
定义在: |
|
文档: |
Checks if the current post has any of given terms.
The given terms are checked against the post's terms' term_ids, names and slugs. Terms given as integers will only be checked against the post's terms' term_ids. If no terms are given, determines if post has any terms.