WP_REST_Autosaves_Controller::get_parent( int $parent_id )
Get the parent post.
Description Description
Parameters Parameters
- $parent_id
-
(int) (Required) Supplied ID.
Return Return
(WP_Post|WP_Error) Post object if ID is valid, WP_Error otherwise.
Source Source
File: wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php
protected function get_parent( $parent_id ) { return $this->revisions_controller->get_parent( $parent_id ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |