in_category( ... )

Checks if the current post is within any of the given categories.

Parameters:
  • $category int | string | int[] | string[]
  • $post int | WP_Post