Core Function
View Source on Trac ↗ is_page()
is_page( mixed $page = '' ) Determines whether the query is for an existing single page.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (int | string | int[] | string[]) $page Optional. Page ID, title, slug, or array of such to check against. Default empty. Required |
Return Value
(bool)
Whether the query is for an existing single page.
Function Information
Since Version
1.5.0
Source File
wp-includes/query.php
Advertisement