Programmatically Get Linked Variation Product IDs
-
Hello,
I would like to retrieve linked product data programmatically when using WPC Linked Variations for WooCommerce.
Specifically, I need to:
- Get all linked product IDs associated with a parent product.
- Retrieve the linked attribute name (e.g., Color, Size).
- Retrieve the attribute values.
- Get the product ID associated with each attribute value.
- My goal is to extend the WooCommerce Store API product response to include this linked variation data for a headless WooCommerce implementation.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.