WP_REST_Posts_Controller::get_item_permissions_check

SummerySummery

Checks if a given request has access to read a post.

Syntax

WP_REST_Posts_Controller::get_item_permissions_check( WP_REST_Request $request )

ParametersParameters

$request

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

ReturnReturn

(bool|WP_Error) True if the request has read access for the item, WP_Error object otherwise.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top