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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)