WordPress at a glance
function is not described

get_page() WP 1.5.1

Deprecated from version 3.5.0. It is no longer supported and can be removed in future releases. Use get_post() instead.

Retrieves page data given a page ID or page object.

Use get_post() instead of get_page().

No Hooks.


WP_Post|Array|null. WP_Post or array on success, null on failure.


get_page( $page, $output, $filter );
$page(int|WP_Post) (required)
Page object or page ID. Passed by reference.
The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to a WP_Post object, an associative array, or a numeric array, respectively.
Default: OBJECT
How the return value should be filtered. Accepts 'raw', 'edit', 'db', 'display'.
Default: 'raw'


Since 1.5.1 Introduced.
Deprecated Since 3.5.0 Use get_post()

Code of get_page() WP 5.7

function get_page( $page, $output = OBJECT, $filter = 'raw' ) {
	return get_post( $page, $output, $filter );