in_category( int|string|int[]|string[] $category, int|WP_Post $post = null ): bool Checks if the current post is within any of the given categories. Description 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. Prior to v2.5 of WordPress, category names were not suppo