Warning: This function has been deprecated.

get_page ( mixed $page, string $output = OBJECT, string $filter = 'raw' )

Retrieves page data given a page ID or page object.

Use get_post() instead of get_page().

Return: (WP_Post|array|null) WP_Post on success or null on failure.

Source file: wp-includes/post.php

View source


Parameters

$page

(mixed) (Required) Page object or page ID. Passed by reference.

$output

(string) (Optional) What to output. Accepts OBJECT, ARRAY_A, or ARRAY_N.

Default value: OBJECT

$filter

(string) (Optional) How the return value should be filtered. Accepts 'raw', 'edit', 'db', 'display'.

Default value: 'raw'


Used by


Source

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


Changelog


User Contributed Notes

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