/woocommerce-commerce:woo-custom-fieldsfrom woocommerce-commerce
Guides through WooCommerce product attributes, custom meta fields, taxonomies, and programmatic data manipulation for products, orders, and customers.
Ships in woocommerce-commerce. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch live docs:
site:developer.woocommerce.com product data custom fields for product custom fields guidesite:developer.wordpress.org plugins metadata for WordPress metadata APIwoocommerce custom product attributes programmatically for attribute creationDefined in WooCommerce > Attributes — shared across all products:
pa_{attribute_slug} (e.g., pa_color, pa_size)wc_create_attribute(), wc_update_attribute(), wc_delete_attribute()Per-product attributes — not global taxonomies:
_product_attributes array$product->set_attributes() with WC_Product_Attribute objectsCreate WC_Product_Attribute objects:
set_id() — 0 for custom attributes, taxonomy ID for globalset_name() — taxonomy name (pa_color) or custom labelset_options() — array of term IDs (global) or string values (custom)set_visible() — show on product pageset_variation() — used for variations| 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 |
$product->update_meta_data( '_my_custom_field', $value ) then $product->save()$product->get_meta( '_my_custom_field' ) — retrieve value_ to hide from the Custom Fields meta boxUse hooks to add fields to the product edit screen:
woocommerce_product_options_general_product_data — General tabwoocommerce_product_options_inventory_product_data — Inventory tabwoocommerce_product_options_shipping_product_data — Shipping tabwoocommerce_product_options_advanced — Advanced tabwoocommerce_process_product_meta actionwoocommerce_wp_text_input( $args ) — text inputwoocommerce_wp_textarea_input( $args ) — textareawoocommerce_wp_select( $args ) — dropdown selectwoocommerce_wp_checkbox( $args ) — checkboxwoocommerce_wp_hidden_input( $args ) — hidden fieldFilter woocommerce_product_tabs to add, remove, or reorder tabs:
title, priority, callback keysdescription, additional_information, reviewsFilter woocommerce_product_data_tabs to add tabs in the product editor:
label, target, class, prioritywoocommerce_product_data_panels action$order->update_meta_data( '_my_field', $value ) then $order->save()$order->get_meta( '_my_field' ) — retrieve valueupdate_post_meta()$customer->update_meta_data() / $customer->get_meta() via WC_Customerupdate_user_meta() / get_user_meta() for WordPress user metaUse register_taxonomy() on init hook:
product post type for product classificationshow_in_rest for REST API / block editor supportupdate_meta_data / get_meta) for HPOS compatibilitysanitize_text_field(), wc_clean(), absint()esc_html(), esc_attr(), wp_kses_post()Fetch the WooCommerce product data and metadata documentation for exact hook names, field function signatures, and attribute API before implementing.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin woocommerce-commerce20 skills in this plugin
/php-modernWrite modern PHP 8.x code — typed properties, enums, readonly classes, match expressions, named arguments, union/intersection types, fibers, attributes, and constructor promotion. Use when writing PHP for WooCommerce or any PHP 8.x project./php-patternsApply PHP design patterns — Singleton, Factory, Strategy, Observer, Repository, Decorator, and Dependency Injection in PHP. Use when structuring WooCommerce extension code or implementing complex business logic./php-testingWrite PHP tests with PHPUnit — unit tests, mocking, data providers, assertions, test doubles, and TDD workflow. Use when writing tests for WooCommerce extensions or PHP projects./woo-adminBuild WooCommerce admin interfaces — settings pages, admin menus, product data tabs/panels, order meta boxes, WooCommerce Admin (React analytics), and reports. Use when creating admin-facing configuration or display pages./woo-apiBuild and consume WooCommerce REST API v3 endpoints — authentication, custom endpoints, extending existing resources, webhooks, and batch operations. Use when creating custom API endpoints or integrating external systems with WooCommerce./woo-blocksBuild WooCommerce Blocks — Gutenberg block integration, block-based cart/checkout extensions, Store API, and the @woocommerce/blocks-checkout package. Use when extending the block editor for WooCommerce or customizing block-based checkout/cart.Other plugins' skills for the same job