WC_REST_Products_Controller
REST API Products controller class.
Description Description
Source Source
File: includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php
Methods Methods
- get_collection_params — Add new options for 'orderby' to the collection params.
- get_images — Get the images for a product or product variation.
- get_item_schema — Get the Product's schema, conforming to JSON Schema.
- get_product_data — Get product data.
- prepare_object_for_database — Prepare a single product for create or update.
- prepare_objects_query — Make extra product orderby features supported by WooCommerce available to the WC API.
- set_product_images — Set product images.