Wc Order Lifecycle And Items

Work safely with WooCommerce order statuses, payment completion, status hooks, order items, line-item meta, totals, and stock side effects. Covers `payment_complete()` vs `update_status()`, `woocommerce_order_status_*` hook ordering and args, `woocommerce_order_status_changed`, `woocommerce_order_payment_status_changed`, `WC_Order_Item_Product`, `add_item()`, `calculate_totals()`, stock reduction/restoration hooks, HPOS-safe CRUD, and why not to instantiate base `WC_Order_Item`. Use when reacting to orders, adding/editing items, changing statuses, provisioning, fulfillment, stock logic, or debugging paid orders that skipped lifecycle side effects.

vikingokft 6550de2 8.1 KB Updated 0 repo stars

File contents

vikingokft/vikingo-studio-skills/tree/main/woocommerce/wc-order-lifecycle-and-items commit 6550de2824

Frequently asked questions

npx skillmds add vikingokft/wc-order-lifecycle-and-items