wp_wc_set_product_attributes is an MCP tool for WooCommerce — available inside Easy MCP AI, the WordPress plugin that connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →wp_wc_set_product_attributes
DestructiveSet a product's options, like Color and Size, by just describing them
Requires WooCommerce plugin.
Description
Selling a shirt that comes in Red, Blue, and Green and in sizes S, M, and L? You first have to tell WooCommerce those options exist on the product — normally a trek through the admin's multi-tab attribute editor. Instead, just say 'on this product, set Color to Red, Blue, Green and Size to S, M, L, and use both for variations' and Easy MCP AI sets it up for you. One thing to know: this replaces the product's current options with whatever you describe, so always state the full set you want. It's the setup step before you create the individual buyable versions, all handled in plain conversation. Requires WooCommerce.
See it in action
wp_wc_set_product_attributes Done. I've used wp_wc_set_product_attributes to complete that for you.
Example Use Cases & Sample Prompts
- Set color and size for a variable product
- Prompt: “On product 380, set Color to Red, Blue, Green and Size to S, M, L — and mark both as variation attributes.”
- Add a material attribute to an existing product
- Prompt: “Set Material to Cotton, Polyester, Wool on product 88 — visible on product page, not used for variations.”
- Pre-variation setup
- Prompt: “Attach Color (Red, Blue) and Size (M, L) to product 700 with variation=true, then create the 4 variations.”
- Bulk attribute attach
- Prompt: “Set the same Color attribute (Red, Blue, Green) on products 100, 101, 102 — one at a time using wp_wc_set_product_attributes.”
- Replace entire attribute set
- Prompt: “Replace the attributes on product 500 with just Color: Black and Size: One Size.”
Frequently Asked Questions
What does wp_wc_set_product_attributes do?
Selling a shirt that comes in Red, Blue, and Green and in sizes S, M, and L? You first have to tell WooCommerce those options exist on the product — normally a trek through the admin's multi-tab attribute editor. Instead, just say 'on this product, set Color to Red, Blue, Green and Size to S, M, L, and use both for variations' and Easy MCP AI sets it up for you. One thing to know: this replaces the product's current options with whatever you describe, so always state the full set you want. It's the setup step before you create the individual buyable versions, all handled in plain conversation. Requires WooCommerce.
How do I use wp_wc_set_product_attributes with my AI assistant?
Install Easy MCP AI and the WooCommerce plugin, generate an API token in your dashboard, and connect your AI client. Then describe what you want in natural language — for example: "On product 380, set Color to Red, Blue, Green and Size to S, M, L — and mark both as variation attributes."
Do I need Easy MCP AI to use wp_wc_set_product_attributes?
Yes. wp_wc_set_product_attributes is bundled inside Easy MCP AI as part of the WooCommerce integration. Install the free plugin, add WooCommerce, connect your AI, and this tool is available immediately.
More WooCommerce Tools
Update the status of many orders, or clear test orders, in one go
Change prices, stock, or status across many products in one go
Update prices or stock across all of a product's options at once
Create a coupon (percent, fixed_cart, or fixed_product)
Create a new customer account
Create an order programmatically
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_wc_set_product_attributes and all WooCommerce tools instantly.
Step 2
Connect Your AI Client
Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, and 10+ more.