wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
has_term › WordPress Function
Da3.1.0
Deprecaton/a
› has_term ( $term = '', $taxonomy = '', $post = null )
Parametri: (3) |
|
Ritorna: |
|
Definito a: |
|
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.