woo-custom-fields

Installation
SKILL.md

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:

  • Stored as custom taxonomies: pa_{attribute_slug} (e.g., pa_color, pa_size)
  • Terms are the possible values (Red, Blue, Small, Large)
  • Can be used for filtering, variations, and layered navigation
  • Managed via wc_create_attribute(), wc_update_attribute(), wc_delete_attribute()
Related skills
Installs
2
GitHub Stars
29
First Seen
Mar 31, 2026