wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
has_category › WordPress Function
Od3.1.0
Przestarzałyn/a
› has_category ( $category = '', $post = null )
Parametry: (2) |
|
Powrót: |
|
Zdefiniowane na: |
|
Codex: |
Checks if the current post has any of given category.
The given categories are checked against the post's categories' term_ids, names and slugs. Categories given as integers will only be checked against the post's categories' term_ids. If no categories are given, determines if post has any categories.