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.


Top ↑

Return Return

(bool) Whether the status was changed.


Top ↑

Source Source

File: includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.