WP_REST_Autosaves_Controller::create_item_permissions_check

SummerySummery

Checks if a given request has access to create an autosave revision.

Syntax

WP_REST_Autosaves_Controller::create_item_permissions_check( WP_REST_Request $request )

DescriptionDescription

Autosave revisions inherit permissions from the parent post, check if the current user has permission to edit the post.

ParametersParameters

$request

(WP_REST_Request) (Required) Full details about the request.

ReturnReturn

(true|WP_Error) True if the request has access to create the item, WP_Error object otherwise.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
5.0.0 Introduced.
Scroll to Top