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

Destructive

Set 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

Claude Desktop — MCP Connection
👤
On product 380, set Color to Red, Blue, Green and Size to S, M, L — and mark both as variation attributes.
🤖
Tool called wp_wc_set_product_attributes

Done. I've used wp_wc_set_product_attributes to complete that for you.

Example Use Cases & Sample Prompts

  1. 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.”
  2. 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.”
  3. Pre-variation setup
    • Prompt: “Attach Color (Red, Blue) and Size (M, L) to product 700 with variation=true, then create the 4 variations.”
  4. 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.”
  5. 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.

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.

Download Free Plugin

Step 2

Connect Your AI Client

Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, and 10+ more.

View Setup Guides →

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.