WP_REST_Comments_Controller::check_read_permission

SummerySummery

Checks if the comment can be read.

Syntax

WP_REST_Comments_Controller::check_read_permission( WP_Comment $comment, WP_REST_Request $request )

ParametersParameters

$comment

(WP_Comment) (Required) Comment object.

$request

(WP_REST_Request) (Required) Request data to check.

ReturnReturn

(bool) Whether the comment can be read.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top