WC_REST_Product_Reviews_Controller
REST API Product Reviews Controller Class.
Description Description
Source Source
File: includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php
Methods Methods
- batch_items_permissions_check — Check if a given request has access batch create, update and delete items.
- create_item — Create a single review.
- create_item_permissions_check — Check if a given request has access to create a new product review.
- delete_item — Deletes a review.
- delete_item_permissions_check — Check if a given request has access to delete a product review.
- get_collection_params — Get the query params for collections.
- get_item — Get a single product review.
- get_item_permissions_check — Check if a given request has access to read a product review.
- get_item_schema — Get the Product Review's schema, conforming to JSON Schema.
- get_items — Get all reviews.
- get_items_permissions_check — Check whether a given request has permission to read webhook deliveries.
- get_review — Get the reivew, if the ID is valid.
- handle_status_param — Sets the comment_status of a given review object when creating or updating a review.
- normalize_query_param — Prepends internal property prefix to query parameters to match our response fields.
- prepare_item_for_database — Prepare a single product review to be inserted into the database.
- prepare_item_for_response — Prepare a single product review output for response.
- prepare_links — Prepare links for the request.
- prepare_status_response — Checks comment_approved to set comment status for single comment output.
- register_routes — Register the routes for product reviews.
- update_item — Updates a review.
- update_item_permissions_check — Check if a given request has access to update a product review.