Relative Content

Tag Archive for javascriptwordpressfunctionwoocommerce

Update Woocommerce Admin Products List Stock Status without refreshing page

I am working on a function for Woocommerce that will add a toggle button for quickly changing products from In Stock to Out of Stock or vice versa without having to change the status in Quick Edit. I’ve gotten the toggle to work, but I would also like the Stock column to update the status without refreshing the page. Here’s the JS file I’m using: