2020-05-02 / 4486阅 / 悠然
Check if the current post has any of given category.
(string|int|array)
(Optional)
The category name/term_id/slug or array of them to check for.
Default value: ''
(int|object)
(Optional)
Post to check instead of the current post.
Default value: null
(bool) True if the current post has any of the given categories (or any category, if no category specified).