WP_REST_Comments_Controller::prepare_status_response

SummerySummery

Checks comment_approved to set comment status for single comment output.

Syntax

WP_REST_Comments_Controller::prepare_status_response( string|int $comment_approved )

ParametersParameters

$comment_approved

(string|int) (Required) comment status.

ReturnReturn

(string) Comment status.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top