Database changes for products in woocommerce 3

醉酒当歌 提交于 2019-11-28 11:48:34

In WooCommerce 3+ everything listed is the same, except for _featured that doesn't work any more.


The "feature" product functionality in WooCommerce 3+:

Since version 3, WooCommerce generates a featured term (name and slug) located in wp_terms table, which custom taxonomy is product_visibility in wp_term_taxonomy table.

The wp_term_relationships table make the link between:

  • the "featured" products IDs through the object_id key
  • the ID for product_visibility taxonomy through term_taxonomy_id key

The wp_term_taxonomy table make the link with the term featured through its term_id key.

It works jut like a post term.


Update: regarding other changes not listed in your question.

The product_visibility taxonomy also handle those terms (functionalities):

  • exclude-from-search (product visibility option)
  • exclude-from-catalog (product visibility option)
  • outofstock (stock status)
  • rated-1 to rated-5 (product rating)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!