Categories
How to add an array of custom attributes to a WooCommerce product using php?
Answer the question
In order to leave comments, you need to log in
I figured it out myself. Everything turned out to be simple.
update_post_meta( $product_id, '_product_attributes', $attributes );
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question