How does Woocommerce store variation attributes, and how can they be retrieved per-variation? [closed]

Attributes are stored on wp_term_relationships.

Ex:

+--------------+-------------------+-------------------+
| object_id    | term_taxonomy_id  | term_taxonomy_id  |
+--------------+-------------------+-------------------+
| 91           | 48                | 0                 |
+--------------+-------------------+-------------------+

Product 91 has an attribute 48

Leave a Comment