WP_REST_Revisions_Controller::get_parent

SummerySummery

Get the parent post, if the ID is valid.

Syntax

WP_REST_Revisions_Controller::get_parent( int $parent )

ParametersParameters

$parent

(int) (Required) Supplied ID.

ReturnReturn

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

SourceSource

File: wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php


			

ChangelogChangelog

Changelog
Version Description
4.7.2 Introduced.
Scroll to Top