6f163b4cee
* Add a new endpoint to get low in stock products. * Set images and attributes property * WIP -- set last order date * Do not join postmeta if store does not have any custom stock threshold * Combine get_query() and get_query_for_sitewide_threshold() into one method and a few code clean ups * Support status field * Use new products/low-in-stock endpoint to count low in stock products. * Use new products/low-in-stock to get low in stock products data. * Remove low_in_stock support * Deprecate low_in_stock * Use the new ProductsLowInStock when low_in_stock is set * Set cache-control header for the new endpoint * Use wc_rest_prepare_date_response to format the response date * Extract low in stock test to a separate file * Make is_using_sitewide_stock_threshold_only protected * Revert Products.php changes * Add back low in stock test to products test * Remove unnecessary if * Make the controller final * Deprecate low_in_stock * Bug fix -- last_order_date was not setting correctly for variation post type. This commit fixes it * Add changelog |
||
---|---|---|
.. | ||
test | ||
card.js | ||
index.js |