WC Variable Product’s Stock Status in Backend

Lately, I was modifying a WordPress website for a client and I had to find a way to display the stock status of every variation of a variable product in WooCommerce. It was the first time I messed up with WooCommerce’s actions and filters. Here is the solution, without using a plugin. All code goes in functions.php file. Filter to remove/add columns in products page Action to actually display our variable stock status Styling the column with CSS (through PHP) […]