wpseek.com
A WordPress-centric search engine for devs and theme authors
has_term › WordPress Function
Since3.1.0
Deprecatedn/a
› has_term ( $term = '', $taxonomy = '', $post = null )
Parameters: (3) |
|
Returns: |
|
Defined at: |
|
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.