WP_REST_Controller::prepare_item_for_database

SummerySummery

Prepares one item for create or update operation.

Syntax

WP_REST_Controller::prepare_item_for_database( WP_REST_Request $request )

ParametersParameters

$request

(WP_REST_Request) (Required) Request object.

ReturnReturn

(object|WP_Error) The prepared item, or WP_Error object on failure.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top