WC_REST_Products_V2_Controller
REST API Products controller class.
Description Description
Source Source
File: includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php
Methods Methods
- __construct — Initialize product actions.
- api_get_meta_data — Fetch meta data.
- api_get_price_html — Fetch price HTML.
- api_get_related_ids — Fetch related IDs.
- clear_transients — Clear caches here so in sync with any new variations/children.
- delete_item — Delete a single item.
- get_attribute_options — Get attribute options.
- get_attribute_taxonomy_label — Get attribute taxonomy label. — deprecated
- get_attribute_taxonomy_name — Get product attribute taxonomy name.
- get_attributes — Get the attributes for a product or product variation.
- get_collection_params — Get the query params for collections of attachments.
- get_default_attributes — Get default attributes.
- get_downloads — Get the downloads for a product or product variation.
- get_images — Get the images for a product or product variation.
- get_item_schema — Get the Product's schema, conforming to JSON Schema.
- get_object — Get object.
- get_product_data — Get product data.
- get_taxonomy_terms — Get taxonomy terms.
- prepare_links — Prepare links for the request.
- prepare_object_for_database — Prepare a single product for create or update.
- prepare_object_for_response — Prepare a single product output for response.
- prepare_objects_query — Prepare objects query.
- register_routes — Register the routes for products.
- save_default_attributes — Save default attributes.
- save_downloadable_files — Save downloadable files.
- save_product_shipping_data — Save product shipping data.
- save_taxonomy_terms — Save taxonomy terms.
- set_product_images — Set product images.