Products
REST API Products controller class.
Description Description
Source Source
File: woocommerce/packages/woocommerce-blocks/src/RestApi/Controllers/Products.php
Methods Methods
- force_edit_posts_permission — Change REST API permissions so that authors have access to this API.
- get_add_to_cart_url — Get a usable add to cart URL.
- get_collection_params — Update the collection params.
- get_item_permissions_check — Check if a given request has access to read an item.
- get_item_schema — Get the Product's schema, conforming to JSON Schema.
- get_items — Get a collection of posts.
- get_items_permissions_check — Check if a given request has access to read items.
- get_product_data — Get product data.
- prepare_objects_query — Make extra product orderby features supported by WooCommerce available to the WC API.
- register_routes — Register the routes for products.