WP_REST_Comments_Controller::delete_item_permissions_check

SummerySummery

Checks if a given request has access to delete a comment.

Syntax

WP_REST_Comments_Controller::delete_item_permissions_check( WP_REST_Request $request )

ParametersParameters

$request

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

ReturnReturn

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

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top