Core Function
View Source on Trac ↗ is_page_template()
is_page_template( mixed $template = '' ) Determines whether the current post uses a page template.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (string | | string[]) $template The specific template filename or array of templates to match. Required |
Return Value
(bool)
True on success, false on failure.
Function Information
Since Version
2.5.0
Source File
wp-includes/post-template.php
Advertisement