I asked Yoast SEO support about this as I'm using their plugin, but they don't have this feature:
Instead of having to set a meta description for each WooCommerce product I sell, I'd like to set it automatically to the description of the product's category (or primary category, if it has several).
I found some code to retrieve the product's category description (https://stackoverflow.com/questions/19249756/how-to-display-woocommerce-category-description), but I don't know how to set it as this product's meta description.
Can you please help? :)
Thank you very much.