WC_REST_Orders_V1_Controller
REST API Orders controller class.
Description Description
Source Source
File: includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php
Methods Methods
- __construct — Initialize orders actions.
- create_base_order — Create base WC Order object. — deprecated
- create_item — Create a single item.
- create_order — Create order.
- filter_writable_props — Only return writable props from schema.
- get_collection_params — Get the query params for collections.
- get_item_schema — Get the Order's schema, conforming to JSON Schema.
- get_order_statuses — Get order statuses without prefixes.
- get_product_id — Gets the product ID from the SKU or posted ID.
- item_is_null — Helper method to check if the resource ID associated with the provided item is null.
- maybe_set_item_prop — Maybe set an item prop if the value was posted.
- maybe_set_item_props — Maybe set item props if the values were posted.
- prepare_coupon_lines — Create or update an order coupon.
- prepare_fee_lines — Create or update an order fee.
- prepare_item_for_database — Prepare a single order for create.
- prepare_item_for_response — Prepare a single order output for response.
- prepare_line_items — Create or update a line item.
- prepare_links — Prepare links for the request.
- prepare_shipping_lines — Create or update an order shipping method.
- query_args — Query args.
- register_routes — Register the routes for orders.
- set_item — Wrapper method to create/update order items.
- update_address — Update address.
- update_item — Update a single order.
- update_order — Update order.