WooCommerce
WooCommerce is a customizable, open-source e-commerce platform built on WordPress, allowing users to create online stores with a variety of tools and features for managing products, payments, and shipping.
Featured Skills
Add or modify WooCommerce backend PHP code following project conventions. Use when creating new classes, methods, hooks, or modifying existing backend code. **MUST be invoked before writing any PHP unit tests.**
Use when working with WooCommerce orders, products, or customers. Covers HPOS (High-Performance Order Storage, OrdersTableDataStore, custom_order_tables), wc_get_order, wc_get_orders, WC_Order CRUD methods (get_total, get_status, get_meta, set_status, update_meta_data, save), wc_get_product, WC_Product types (simple, variable, variation, grouped, external), WC_Customer, WC_Data, meta_query, Store API (/wc/store/v1/, ExtendSchema, CartItemSchema), WooCommerce REST API (/wc/v3/, consumer key authentication), and wc_get_container DI container.
Use when building WooCommerce payment gateways, checkout integrations, or payment processing. Covers WC_Payment_Gateway, WC_Payment_Gateway_CC, process_payment, process_refund, tokenization, saved payment methods, init_form_fields, validate_fields, wc_add_notice, Block Checkout (AbstractPaymentMethodType, wc.wcBlocksRegistry, registerPaymentMethod), cart_checkout_blocks compatibility, and classic-to-block checkout migration.
Use when hooking into WooCommerce events, adding custom checkout fields, modifying cart behavior, or extending WooCommerce admin. Covers woocommerce_new_order, woocommerce_checkout_order_processed, woocommerce_payment_complete, woocommerce_order_status_changed, woocommerce_order_status_{status}, woocommerce_add_to_cart, woocommerce_cart_calculate_fees, woocommerce_before_calculate_totals, woocommerce_checkout_fields, woocommerce_checkout_process, woocommerce_product_options_general_product_data, woocommerce_process_product_meta, woocommerce_email_classes, woocommerce_settings_tabs_array, settings pages, custom WC_Email classes, WP-CLI wc commands, and WC_Unit_Test_Case testing patterns.
Configure sidebar widgets for XStore WooCommerce theme via WP-CLI. Use when setting up shop sidebar filters, footer widgets, product categories, price filters, or brand filters.
When the user wants to optimize WooCommerce product images based on sales performance data, particularly for variable products with multiple variations. This skill analyzes order history to identify the best-selling variation for each product and automatically updates the main product image to showcase the most popular option. It handles fetching products and orders data, analyzing sales patterns, identifying variation popularity, and updating product images through WooCommerce API. Use when users mention 'best-selling variation', 'update main product image based on sales', 'product image optimization', or need to align product visuals with customer preferences based on order data.
Use when starting a new WooCommerce extension, setting up plugin headers, checking WooCommerce availability, declaring HPOS and block checkout compatibility with FeaturesUtil, or understanding WooCommerce extension architecture. Covers Requires Plugins header, WC requires at least, WC tested up to, before_woocommerce_init, declare_compatibility for custom_order_tables and cart_checkout_blocks, plugins_loaded initialization, class_exists WooCommerce check, and Interactivity API store privacy (lock true).
Perform deep thematic analysis of WooCommerce release PRs. Use when asked to analyze a release changelog for themes, impact assessment, breaking changes, and release note suggestions. Reads from changelogs/<version>.csv and release-posts/ for context.
Analyze WooCommerce changelog files to identify and rank changes most relevant to the developer community. Use when asked to review, summarize, or prioritize WooCommerce changelog entries, find notable changes, or generate release highlights from the ../woocommerce/plugins/woocommerce/changelog/ directory.
WooCommerce REST API - products, orders, customers, webhooks
Expert knowledge in WooCommerce development, hooks, filters, custom functionality, product types, and REST API integration. ALWAYS verify with Context7 for up-to-date WooCommerce 8.5+ documentation. Triggers on keywords like "woocommerce", "product", "cart", "checkout", "wc_", "shop", "orders".
Review code changes against project architecture, style, and conventions
Debug a failing test or build error in WooCommerce iOS
Review WooCommerce code changes for coding standards compliance. Use when reviewing code locally, performing automated PR reviews, or checking code quality.
Build, install, and visually verify the app on an Android emulator or device
Run tests for WooCommerce iOS (full suite or targeted)
Review code changes against WooCommerce iOS standards
Guidelines for git and GitHub operations in the WooCommerce repository.
Run tests, linting, and quality checks for WooCommerce development. Use when running tests, fixing code style, or following the development workflow.