Woo custom fields

From OrcaQubits/agentic-commerce-skills-plugins · View interactive version

Woo custom fields is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Work with WooCommerce product attributes, custom meta fields, taxonomies, custom product tabs, and variation data. Use when adding custom data to products, orders, or customers.

How to use this skill

Skill file

WooCommerce Custom Fields & Attributes

Before writing code

Fetch live docs:

  1. Web-search site:developer.woocommerce.com product data custom fields for product custom fields guide
  2. Web-search site:developer.wordpress.org plugins metadata for WordPress metadata API
  3. Web-search woocommerce custom product attributes programmatically for attribute creation

Product Attributes

Global Attributes

Defined in WooCommerce > Attributes — shared across all products:

Custom (Local) Product Attributes

Per-product attributes — not global taxonomies:

Setting Attributes Programmatically

Create WC_Product_Attribute objects:

Product Meta

Core Meta Keys

| Key | Description |

|-----|-------------|

| _price | Current active price |

| _regular_price | Regular price |

| _sale_price | Sale price |

| _sku | Stock Keeping Unit |

| _stock | Stock quantity |

| _stock_status | instock / outofstock / onbackorder |

| _weight, _length, _width, _height | Dimensions |

| _virtual, _downloadable | Product type flags |

Custom Meta

Adding Product Edit Fields

Use hooks to add fields to the product edit screen:

Field Rendering Functions

Custom Product Tabs

Adding to Product Page

Filter woocommerce_product_tabs to add, remove, or reorder tabs:

Adding to Product Edit (Admin)

Filter woocommerce_product_data_tabs to add tabs in the product editor:

Order Meta

Customer Meta

Custom Taxonomies

Registering Custom Taxonomies

Use register_taxonomy() on init hook:

Best Practices

Fetch the WooCommerce product data and metadata documentation for exact hook names, field function signatures, and attribute API before implementing.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.