New woocommerce_product_get_stock_quantity filter causes error on backend product page
Closed this issue · 1 comments
jeroendk commented
$selected_stock_location_id = WC()->session->get('stock_location_selected');
throws an error because the WC Session is not available on the admin page.
fahadmahmood8 commented
Thank you, I have released another version with this fix.