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
- What actions affect files, DB, or both?
- Set a specific default stock quantity on all WooCommerce new products
- Shipping Location based on IP (Geolocation)
- How to search Woo Commerce products with punctuation in title?
- Can’t create term for product attribute
- Emojis getting converted to “?”
- woocommerce “publish “”product”” webhook
- Search and replace special characters (å,ä,ö) for image attachments only in database
- Accidentally deleted active_plugins portion of the wp_options DB table
- Users table association with users_metadata table appears broken
- WooCommerce Display Digital Download Files Type and Size
- woo commerce get all orders item given category
- Add Stripe Connect data to wc_stripe_payment_request
- WooCommerce – Stock in Decimals, Using Quantity Intervals with Unique Prices [closed]
- Additional fields on Woocommerce’s rating system
- Woocommerce product image [closed]
- Question on WooCommerce Syntax
- woocommerce_new_product action doesn’t fire
- Change The Woocommerce Product Categories Dropdown Widget Placeholder Text
- minimum order item for certain products exempting 2 other products (in bulk)
- Is it possible to checkout with 2 different shipping options on a single order? [closed]
- Woocommerce Advanced Shipping (WAS) condition is not being called when selecting “Ship to different address” [closed]
- Add table to WordPress database
- Strip string from $_product->get_title() to get a cleaner mini-cart
- Product page attributes dropdown show price
- Smart Design for Blog + Woocommerce + LearnDash + Forum/Bodyboss
- Ajax add to cart not updating Elementor mini cart totals
- WooCommerce – 500k Jump in Order Number?
- Need help with woocommerce roles
- Change WooCommerce product and variation prices programatically without affecting performance
- Help to locate a woocommerce hook method
- Is there any defects for using same database prefix in WordPress for multiple sites?
- Can I use taxonomies to make a multistore with woocommerce?
- Why does wc_get_products($arg) return no products when $arg = ‘average_rating’ => 5.0
- Query product’s image path by category WooCommerce database?
- How update price for variable product
- Related products based on keywords
- Add button linked to single product page on order detail page
- Send default WooCommerce email when switching from custom order status
- syntax error – woocommerce
- How to on/off woocommerce filter with redux framework [closed]
- How to set up a single product shop with woocommerce? Skipping the product archive
- I’m trying to display product categories on each product in the list
- Cross-sells on WooCommerce product page
- Admin Order adding an extra product on add_line_item
- Woocommerce update cart
- Get WP All Export row ID
- WooCommerce – missing products when viewed by tag
- Pull Data from DB for Admin Page Display as Relates to Admin Page Class by BA Internet
- Hiding all products except for one in wordpress admin panel
- cannot create product attribute (taxonomy) and add terms on the same execution
- Copy and Modified WooCommerce function is_coupon_valid [closed]
- How do I get my image for my product to not be blurry
- Product Variation Auto Select when only one 1 and mark the option [closed]