WP_REST_Autosaves_Controller::get_parent( int $parent_id )

Get the parent post.

Parameters Parameters


(int) (Required) Supplied ID.

Top ↑

Return Return

(WP_Post|WP_Error) Post object if ID is valid, WP_Error otherwise.

Top ↑

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 );

Top ↑

Changelog Changelog

Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

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