Automattic\WooCommerce\Internal\ReceiptRendering
ReceiptRenderingRestController::get_args_for_get_order_receipt()
Get the accepted arguments for the GET request.
Method of the class: ReceiptRenderingRestController{}
No Hooks.
Return
Array[]
. The accepted arguments for the GET request.
Usage
// private - for code of main (parent) class only $result = $this->get_args_for_get_order_receipt(): array;
ReceiptRenderingRestController::get_args_for_get_order_receipt() ReceiptRenderingRestController::get args for get order receipt code WC 9.3.3
private function get_args_for_get_order_receipt(): array { return array( 'id' => array( 'description' => __( 'Unique identifier of the order.', 'woocommerce' ), 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), ); }