How to use an already existing product attribute and not create a new one with WC_Product_Attribute class in WooCommerce?
I am trying to create a Wordpress plugin that creates variable products programmatically, but the problem is, I would like to use attributes I have previously defined manually from the admin dashboard. I need to assign the attribute to the…