WP_REST_Posts_Controller::prepare_item_for_database

SummerySummery

Prepares a single post for create or update.

Syntax

WP_REST_Posts_Controller::prepare_item_for_database( WP_REST_Request $request )

ParametersParameters

$request

(WP_REST_Request) (Required) Request object.

ReturnReturn

(stdClass|WP_Error) Post object or WP_Error.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top