Help us improve
Share bugs, ideas, or general feedback.
From woocommerce-commerce
Manages WooCommerce product catalog: types, categories, tags, attributes, queries, search, related products, visibility. For programmatic product CRUD and display customization.
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin woocommerce-commerceHow this skill is triggered — by the user, by Claude, or both
Slash command
/woocommerce-commerce:woo-catalogThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Fetch live docs**:
Manages WooCommerce product attributes, custom meta fields, taxonomies, tabs, and variation data for adding custom data to products, orders, or customers.
Guides optimal workflows and API sequences for creating complete products in Wix Stores, including preparation, categories, images, variants, inventory, SEO, and visibility settings.
Manage Saleor catalog: products, variants, types, categories, collections, media, warehouse stock via GraphQL. Guides schema review, mutations, hierarchy for product data tasks.
Share bugs, ideas, or general feedback.
Fetch live docs:
site:developer.woocommerce.com products for product documentationhttps://woocommerce.github.io/code-reference/ for class referencewoocommerce custom product type implementation for custom product types| Type | Class | Description |
|---|---|---|
| Simple | WC_Product_Simple | Single product, no options |
| Variable | WC_Product_Variable | Product with variations (size, color) |
| Variation | WC_Product_Variation | Individual variation of a variable product |
| Grouped | WC_Product_Grouped | Collection of related simple products |
| External/Affiliate | WC_Product_External | Linked to external URL |
Any product can be marked:
WC_Product (or WC_Product_Simple)woocommerce_product_type_selector filterwoocommerce_product_class filter or woocommerce_product_type_{type} class name filterWC_Product_Factory resolves a product ID to the correct class:
wc_get_product( $id ) — returns the correct WC_Product_* subclasswoocommerce_product_class filter to allow custom type resolution$product = new WC_Product_Simple();
$product->set_name( 'My Product' );
$product->set_regular_price( '29.99' );
$product->set_status( 'publish' );
$product->save();
wc_get_products( $args ) — primary query method:
type — product type(s)status — post statussku — SKU lookupcategory — category slug(s)tag — tag slug(s)limit, page, offset — paginationorderby, order — sortingmeta_key, meta_value — meta queriesreturn — 'objects' (default) or 'ids'Object-oriented query builder — same as wc_get_products() but chainable.
Taxonomy: product_cat (hierarchical)
wp_set_object_terms( $product_id, $term_ids, 'product_cat' )get_the_terms( $product_id, 'product_cat' )$product->set_category_ids( [ 12, 15 ] )Taxonomy: product_tag (non-hierarchical)
$product->set_tag_ids( [ 5, 8 ] )Taxonomy: product_type — internal, determines the product class.
Register with register_taxonomy() associated with product post type. Set show_in_rest => true for block editor and API support.
$product->set_catalog_visibility( $visibility ):
visible — shop and searchcatalog — shop onlysearch — search onlyhidden — not visible (accessible via direct URL)$product->set_stock_status( $status ):
instock, outofstock, onbackorder$product->set_image_id( $attachment_id ) — featured image$product->set_gallery_image_ids( [ $id1, $id2 ] ) — galleryWC_Product_Variableset_attributes() (mark as variation = true)WC_Product_Variation for each combinationEach variation specifies attribute values:
$variation->set_attributes( [ 'pa_color' => 'red', 'pa_size' => 'large' ] )$product->set_upsell_ids( $ids ) — upsell products$product->set_cross_sell_ids( $ids ) — cross-sells (shown in cart)woocommerce_related_products filter)wc_get_product() to load products — never new WC_Product( $id ) directlywc_get_products() for queries — not WP_Query with post_type => 'product'show_if_simple, show_if_variable classes on admin tabswc_clean() to sanitize product input dataFetch the WooCommerce product documentation and code reference for exact method signatures, query parameters, and product type registration patterns before implementing.