2020-05-01 / 5490阅 / 悠然
Warning: This function has been deprecated. Use get_post() instead.
Retrieves page data given a page ID or page object.
Use get_post() instead of get_page().
(int|WP_Post)
(Required)
Page object or page ID. Passed by reference.
(string)
(Optional)
The required return type.>WP_Post object, an associative array, or a numeric array, respectively.
Default value: OBJECT
(string)
(Optional)
How the return value should be filtered. Accepts 'raw', 'edit', 'db', 'display'.
Default value: 'raw'
(WP_Post|array|null) WP_Post or array on success, null on failure.