wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
has_term › WordPress Function
Desde3.1.0
Obsoleton/a
› has_term ( $term = '', $taxonomy = '', $post = null )
Parâmetros: (3) |
|
Retorna: |
|
Definido em: |
|
Codex: |
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.