When I copy a product the term_relationships link for expiry dates is not copied. Expiry rule dropdown has “None” selected. When I manually select correct expiry rule via dropdown the data is shown. By looking in database I see meta data is copied but the link in “term_relationships” is not created. How to fix this? Is there a missing hook or something similar?
Our real issue is that we are copying products via API so we can not handle this manually. But for reference we where able to recreate issue via admin as mentioned above.
Thanks. We have tested several ways but are not able to get the link there. If I understand correctly, this is the correct format:
curl –user “user:password” -X POST -d “j79_wcxd_expiry_type=250” https://example.com/wp-json/wp/v2/product/10678
I was able to update title, but not to add the term_taxonomy with id 250.