Products
Products controller.
Description Description
Source Source
File: packages/woocommerce-admin/src/API/Products.php
Methods Methods
- add_wp_query_fields — Add in conditional select fields to the query.
- add_wp_query_filter — Add in conditional search filters for products.
- add_wp_query_group_by — Group by post ID to prevent duplicates.
- add_wp_query_join — Join posts meta tables when product search or low stock query is present.
- append_product_sorting_table_join — Join wc_product_meta_lookup to posts if not already joined.
- get_collection_params — Get the query params for collections.
- get_item_schema — Adds properties that can be embed via ?_embed=1.
- get_items — Get a collection of posts and add the post title filter option to WP_Query.
- get_object — Hang onto last order date since it will get removed by wc_get_product().
- prepare_object_for_response — Add `low_stock_amount` property to product data
- prepare_objects_query — Add product name and sku filtering to the WC API.