is_page( int|string|array $page = '' )

Is the query for an existing single page?

25 related functions found for: is_page

Top ↑

Related terms found for this post

wp-parser-related-wordsexist, is, page, post-typ, post-type, query-php, wp-includes
wp-parser-packageQuery, WordPress

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • exist
  • is
  • page
  • post-typ
  • post-type
  • Query
  • query-php
  • wp-includes
  • wp-includes/query.php
  • query

Top ↑

Description Description

If the $page parameter is specified, this function will additionally check if the query is for one of the pages specified.

Top ↑

Parameters Parameters


(int|string|array) (Optional) Page ID, title, slug, or array of such.

Default value: ''

Top ↑

Return Return

(bool) Whether the query is for an existing single page.

Top ↑

Source Source

File: wp-includes/query.php


Top ↑

Changelog Changelog

Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.