Automattic\WooCommerce\StoreApi\Routes\V1
CartUpdateCustomer::get_args()
Get method arguments for this REST route.
Method of the class: CartUpdateCustomer{}
No Hooks.
Return
Array
. An array of endpoints.
Usage
$CartUpdateCustomer = new CartUpdateCustomer(); $CartUpdateCustomer->get_args();
CartUpdateCustomer::get_args() CartUpdateCustomer::get args code WC 9.3.3
public function get_args() { return [ [ 'methods' => \WP_REST_Server::CREATABLE, 'callback' => [ $this, 'get_response' ], 'permission_callback' => '__return_true', 'args' => [ 'billing_address' => [ 'description' => __( 'Billing address.', 'woocommerce' ), 'type' => 'object', 'context' => [ 'view', 'edit' ], 'properties' => $this->schema->billing_address_schema->get_properties(), 'sanitize_callback' => null, ], 'shipping_address' => [ 'description' => __( 'Shipping address.', 'woocommerce' ), 'type' => 'object', 'context' => [ 'view', 'edit' ], 'properties' => $this->schema->shipping_address_schema->get_properties(), 'sanitize_callback' => null, ], ], ], 'schema' => [ $this->schema, 'get_public_item_schema' ], 'allow_batch' => [ 'v1' => true ], ]; }