Default attributes of WooCommerce variable products are stored as post meta in the database.
You can find them in the wp_postmeta
table, where the post_id
column is the post ID of the parent product (Variable product), and the meta_key
column is _default_attributes
.
You can clear and remove default attributes of all products by replacing all non-empty arrays.
To do so, open phpMyAdmin and select the database of your WordPress installation from the left panel and click on SQL tab. Then write the below SQL commands and press Go:
Don’t forget to backing up your database before executing any command
on phpMyAdmin
UPDATE `wp_postmeta` SET `meta_value`= 'a:0:{}' WHERE meta_key = '_default_attributes'
Related Posts:
- Deleted products from woocommerce are still in the database
- Get url of product’s images (woocommerce)
- Display single product attribute value on Shop page (Woocommerce)
- Share users and WooCommerce memberships between two installations
- Is it safe to delete from db orphaned posts i.e. whose post_parent no longer exists?
- Get product details by url key in WordPress woocommerce
- Extend Woocommerce rest api routes fails
- woocommerce_before_calculate_totals in woocommerce 3.0
- How to get all attributes with their terms related to specific Woocommerce product category [closed]
- Remove “Choose An Option” on Product Variation & Auto Select Instead
- why featured product not updated in postmeta table in woocommerce?
- Programmatically adding product attributes to WP / Woo commerce
- Delete All Product Images in phpmyadmin
- How to select from two different tables to display orders list with custom column from other table
- Woocommerce custom search
- Get product variation attribute titles – WooCommerce
- How to change Attribute Type
- WooCommerce – buying as well as selling
- Is it possible to merge Woocommerce attributes? [closed]
- Best Practice – Customise a WooCommerce+WordPress Templates
- Is it safe to have 2 mysql users?
- WooCommerce: One term for Many Product Attributes
- Should I use docker in wordpress production?
- How to remove product attribute row woocommerce using code
- Help me to intergrate product database to WordPress
- Undo WooCommerce CSV import
- WooCommerce Simple Product Options List
- Clients with empty username are not receiving request new password email
- Woocommerce: Any way to list all products *without* a specific attribute?
- WordPress Development Workflow
- Update WooCommerce stock status with SQL query if stock value is greater than 0
- Does WP-WooC support filters at database?
- How to add product variations for large number of products in WooCommerce?
- WooCommerce database upgrade behaviour
- WooCommerce: how to set stock per attribute on variable product
- Alter the cost of products using phpmyadmin sql query
- Importing Attributes in to Woocommerce
- Woocommerce: Some action hooks not firing inside class [closed]
- Is it possible Different templates of products for specific category in WooCommerce?
- WooCommerce – Adding Product Attributes to CSV Export
- PHP Warning: Error while sending QUERY packet
- WordPress and WooCommerce How to Assign Attribute Based Pricing
- Create templates from attributes for categories
- Woocommerce permalink URL change in DB
- Woocommerce plugin increasing Database size
- Converting longtext to mediumtext in WordPress wp_postmeta table
- Product reviews in my sql database
- How to move WooCommerce Product Data Box below Title Box in Edit
- Give auto discount to upsells products
- WooCommerce and Theme templates
- Woocommerce woocommerce_breadcrumb_defaults filter [closed]
- WooCommerce Hook after Billing form completed, but before payment Gateway
- Change woocommerce one category image size
- Remove Span Class From Woocommerce Price
- WooCommerce shop, my account, cart every page redirect to home page [closed]
- Some Admin disappeared
- How to edit woocommerce checkout fields
- WooCommerce Table Rates not splitting up
- Custom access given to Admin dashboard
- Sort by promo code used woocommerce admin panel [closed]
- Add category description on product page (Woocommerce)
- How can I let the user choose size of a shoe in the store? [closed]
- WooCommerce – item added to order not actually saved? [closed]
- Hide/show specific products for backend users in woocommerce
- show payment receipt in woocommerce thankyou page with custom payment gateway?
- Restrict the shop_manager role to the WooCommerce Orders Page
- WooCommerce, after moving reviews tab to under product description. If pagination link is clicked description is hidden
- How to disable click thumbnail product on archives product [closed]
- Hide .woocommerce-price-suffix on the product list page
- I’d like to add a button under the “Add to Cart” button which says “Buy on Amazon” and links to my Amazon product page [closed]
- Woocommerce shows empty columns [closed]
- If YITH Wishlist page is set to the WooCommerce my-account endpoint, the endpoints stop working all together. Any solution?
- WooCommerce pay per photo upload [closed]
- Product atributes in title of order (not in description)
- How to create custome pdf file of my invioice in wordpress
- Need help saving input fields for Security Deposit plugin in WC Vendors page
- Is it possible to hide certain products from displaying in the search results
- How to edit schema.org markup of WooCommerce?
- Display product variations on same row [closed]
- Override woocommerce template from parent theme
- How to get sub items of parent menu item?
- WordPress Woocommerce product-category info on one line [closed]
- Manual Woocommerce Complete order Emails
- Search box missing Woocommerce Product Bundle Extension
- Is it possible to customize username field from the registration page in woocommerce? [closed]
- Woocommerce cart displays outdated prices [closed]
- Woocommerce display price without formatting [closed]
- Own WooCommerce theme showing text boxes instead of slider for price filter widget
- woocommerce shop page Redirect Help
- Woocommerce custom taxonomy order
- Turkish Character Problem on mailing
- WooCommerce: Order Details Table > Add Product Meta
- Create custom add to cart in WordPress
- woocommerce: get product detail form sku [closed]
- Adding Extra Customer Email In Woocommerce Checkout
- How to override email text New Customer Order?
- Woo-Commerce new order email no style attached
- Woocommerce 404 after chang default language
- My WordPress site hacked with unwanted popups [closed]
- Override function