WP_REST_Global_Styles_Revisions_Controller::get_parent( int $parent_post_id ): WP_Post|WP_Error

In this article

Gets the parent post, if the ID is valid.

Description

Duplicate of WP_REST_Revisions_Controller::get_parent.

Parameters

$parent_post_idintrequired
Supplied ID.

Return

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

Source

Changelog

VersionDescription
6.3.0Introduced.

User Contributed Notes

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