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
- What actions affect files, DB, or both?
- WooCommerce Description and Short Description tags removal
- Shipping Location based on IP (Geolocation)
- woocommerce “publish “”product”” webhook
- Image is not displayed in overridden woocommerce email
- woo commerce get all orders item given category
- Add Stripe Connect data to wc_stripe_payment_request
- WooCommerce get default shipping rate & conditions
- Using WooCommerce for payments only?
- WooCommerce Cart Link based on Cookie Values
- Woocommerce is_shop not on page slug? [closed]
- Debugging why featured images have stopped showing in WooCommerce on the homepage [closed]
- WooCommerce minimum order amount for specific country excluding local pickup [closed]
- woocommerce list product by id
- Show Content On below single product with specific category
- How to change a WooCommerce Subscription Deposit and Monthly Payment? [closed]
- how to scrolling image on single product page
- How to display WooCommerce product tag names on home and category pages
- Specifically Link To the “Leave a review” part of product page? [closed]
- Woocommerce pre_get_posts query variation meta data not working
- Can’t hide product attributes with css on WooCommerce Product Page
- Updating product image
- Split in 2 columns add to cart button and variable forms
- Woocommerce to get restaurant table numbers in the checkout fields from the url
- UX Builder not loading for product description edits
- I need help with storefront theme shop page
- Woocommerce shop page not showing all products
- Sending billing details via POST request to an API
- Tax exclusive if coupon applied else tax inclusive in items
- WooCommerce Registration, Sync User, Billing and Shipping info
- How to check which shortcode is using my template?
- woocommerce: when adding or removing items to cart , it takes cart a few seconds to read changes?
- How to get woocommerce integration instance?
- Product atributes in title of order (not in description)
- How to create custome pdf file of my invioice in wordpress
- How to get sub items of parent menu item?
- Storefront Child Theme show product attribute [closed]
- How to Manage Multiple WordPress Websites from one dashboard (WooCommerce)
- Setting stock levels to “0” for all products in store using WP CLI
- Change the User/ Author of the Products
- Custom e-commerce display for specific users [closed]
- How to get the attributes based on dependency in woocommerce?
- Woocommerce composite and bundle products
- Can I log the searches that are returning 404 in the DB?
- WooCommerce Review ID Block
- custom status in Woocommerce with database results
- Question about WooCommerce Subscription
- WooCommerce: Redirect to an item’s product page after item is removed from cart
- Blurry product card image – rendered is 486×452 vs 300×279 in real image. Smaller versions being autocreated and served using srcset
- how to show itemized shipping cost|? [closed]
- GET woocommerce order request is not showing meta data [closed]
- Add a custom meta column to a built-in import CSV file
- Hide/show button for the password field in the Woocommerce My Account page
- I need help with CPT for a food delivery business
- Woocommerce admin order email customize – remove product short description
- Which php files, in a WordPress setup, do not need direct web access?