is_page_template( ... )

Determines whether the current post uses a page template.

Parameters:
  • $template string | string[]