2020-05-01 / 5326阅 / 悠然
Retrieves a page given its path.
(string)
(Required)
Page path.
(string)
(Optional)
The required return type.>WP_Post object, an associative array, or a numeric array, respectively.
Default value: OBJECT
(string|array)
(Optional)
Post type or array of post types.
Default value: 'page'
(WP_Post|array|null) WP_Post (or array) on success, or null on failure.