WP_REST_Autosaves_Controller::get_parent

Advertisement

Summery Summery

Get the parent post.

Syntax Syntax

WP_REST_Autosaves_Controller::get_parent( int $parent_id )

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


			

Advertisement

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.