Automattic\WooCommerce\StoreApi\Routes\V1
CheckoutOrder::get_args()
Get method arguments for this REST route.
Method of the class: CheckoutOrder{}
No Hooks.
Return
Array
. An array of endpoints.
Usage
$CheckoutOrder = new CheckoutOrder(); $CheckoutOrder->get_args();
CheckoutOrder::get_args() CheckoutOrder::get args code WC 9.2.3
public function get_args() { return [ [ 'methods' => \WP_REST_Server::CREATABLE, 'callback' => [ $this, 'get_response' ], 'permission_callback' => [ $this, 'is_authorized' ], 'args' => array_merge( [ 'payment_data' => [ 'description' => __( 'Data to pass through to the payment method when processing payment.', 'woocommerce' ), 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'key' => [ 'type' => 'string', ], 'value' => [ 'type' => [ 'string', 'boolean' ], ], ], ], ], ], $this->schema->get_endpoint_args_for_item_schema( \WP_REST_Server::CREATABLE ) ), ], 'schema' => [ $this->schema, 'get_public_item_schema' ], 'allow_batch' => [ 'v1' => true ], ]; }