WP_REST_Comments_Controller::check_edit_permission

SummerySummery

Checks if a comment can be edited or deleted.

Syntax

WP_REST_Comments_Controller::check_edit_permission( WP_Comment $comment )

ParametersParameters

$comment

(WP_Comment) (Required) Comment object.

ReturnReturn

(bool) Whether the comment can be edited or deleted.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top