WC_REST_Product_Reviews_Controller::handle_status_param( string|int $new_status, int $id )
Sets the comment_status of a given review object when creating or updating a review.
Description Description
Parameters Parameters
- $new_status
-
(Required) New review status.
- $id
-
(Required) Review ID.
Return Return
(bool) Whether the status was changed.
Source Source
File: includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php
Changelog Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |