WP_REST_Attachments_Controller::prepare_item_for_database

SummerySummery

Prepares a single attachment for create or update.

Syntax

WP_REST_Attachments_Controller::prepare_item_for_database( WP_REST_Request $request )

ParametersParameters

$request

(WP_REST_Request) (Required) Request object.

ReturnReturn

(stdClass|WP_Error) Post object.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top