Read an order
wp_wc_get_orderRetrieve a single WooCommerce order by its ID to view status, totals, customer details, line items, payment method, and customer note; use it after listing orders to inspect a specific order.
Instructions
WooCommerce: get one order by id. Returns the fields of the order list (id, status, total, currency, customer, email, date) plus items (name, quantity, line total), payment_method (its title) and note_to_customer. An unknown id returns a not-found error; wp_wc_list_orders lists the orders with their ids. Read-only; needs manage_woocommerce. Requires WooCommerce.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Order id (the order number WooCommerce shows, unless a plugin renumbers orders). |