WC_REST_Products_V1_Controller
REST API Products controller class.
Description Description
Source Source
File: includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php
Methods Methods
- __construct — Initialize product actions.
- add_post_meta_fields — Add post meta fields.
- clear_transients — Clear cache/transients.
- create_item — Create a single product.
- delete_item — Delete a single item.
- delete_post — Delete post.
- get_attribute_options — Get attribute options.
- get_attribute_taxonomy_label — Get attribute taxonomy label.
- 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_post_types — Get post types.
- get_product_data — Get product data.
- get_product_menu_order — Get product menu order. — deprecated
- get_taxonomy_terms — Get taxonomy terms.
- get_variation_data — Get an individual variation's data.
- prepare_item_for_database — Prepare a single product for create or update.
- prepare_item_for_response — Prepare a single product output for response.
- prepare_links — Prepare links for the request.
- query_args — Query args.
- register_routes — Register the routes for products.
- save_default_attributes — Save default attributes.
- save_downloadable_files — Save downloadable files.
- save_product — Saves a product to the database.
- save_product_images — Save product images. — deprecated
- save_product_meta — Save product meta. — deprecated
- save_product_shipping_data — Save product shipping data.
- save_taxonomy_terms — Save taxonomy terms.
- save_variations_data — Save variations.
- set_product_images — Set product images.
- set_product_meta — Set product meta.
- update_item — Update a single product.
- update_post_meta_fields — Update post meta fields.