Products
Products API.
Description Description
Source Source
File: woocommerce/packages/woocommerce-blocks/src/RestApi/StoreApi/Controllers/Products.php
Changelog Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
Methods Methods
- __construct — Setup API class.
- get_collection_params — Get the query params for collections of products.
- get_item — Get a single item.
- get_item_schema — Product item schema.
- get_items — Get a collection of posts and add the post title filter option to \WP_Query.
- prepare_item_for_response — Prepare a single item for response.
- prepare_links — Prepare links for the request.
- register_routes — Register the routes for products.