General Stock Statistics
-
In the main WordPress admin dashboard WooCommerce places a small widget which contains the number of items “out-of-stock” and the number “low-in-stock”.
These values come from the function
status_widget_order_rows()
in this file.However this is a private function. Is there a way of getting at these values using functions.php or in a plugin? Without running DB queries directly?
I’m trying to build a “status page” and this would be very useful.
If not is there an endpoint in the API that just returns the count? Or do I have to return the full list of out-of-stock products and count them?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘General Stock Statistics’ is closed to new replies.