I added a product attribute key and value to a product.
I want to query products by this attribute. I have a query for that (not relevant here), but it returns nothing. So I popped open PHPMyAdmin and started searching my local database to start from the beginning.
I cannot find my new attribute anywhere.
So: my-attribute = "Test Value"
set via the admin of my localhost version of the site. Checked the DB connection, is pointing to local MySQL instance. Saved attributes, clicked update on product, left product page and came back to ensure the attribute is indeed on the product and saved.
Nothing in the database.
Searching for my-attribute
or pa_my-attribute
in the wp_term_taxonomy
table taxonomy
column yields zero results. I do see other records here with pa_
+ some other custom attribute name.
Clicking through the other tables like wp_terms
or wp_woocommerce_attribute_taxonomies
also doesn't show any records matching the my-attribute
or qa_my-attribute
input.
Added the same exact attribute to a second product and still cannot find anything. Reconfirmed DB connection. No record in database that I can find.
But it's absolutely there on the products in the admin.
What am I missing?