A
A
Angelxalfa2017-07-19 16:22:58
WordPress
Angelxalfa, 2017-07-19 16:22:58

Where are the attributes in woocommerce?

I am writing a custom goods importer. I loaded it initially with an error - in the cycle I created a bunch of extra product attributes. I'm trying to delete them - I cleaned all the tables in the database - they definitely aren't there. And in the admin panel are displayed ... where to look?
48a3b6a4184046aaac3db8339b815b82.png
I found a function that generates the output of attributes in the woocommerce plugin
https://docs.woocommerce.com/wc-apidocs/function-w...
5e8426a974fa4883b7fb04945322fe61.png
But this table is empty!!!! Can it cache data somewhere?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Angelxalfa, 2017-07-19
@Angelxalfa

Found it myself.
wp-options table has _transient_wc_attribute_taxonomies option. Woocommerce saves the attribute cache there as a serialized array.
when adding a new attribute, you need to reset this cache.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question