Automattic\WooCommerce\Blocks\StoreApi\Routes
CartUpdateCustomer::get_args() public WC 1.0
Get method arguments for this REST route.
{} Это метод класса: CartUpdateCustomer{}
Хуков нет.
Возвращает
Массив. An array of endpoints.
Использование
$CartUpdateCustomer = new CartUpdateCustomer(); $CartUpdateCustomer->get_args();
Код CartUpdateCustomer::get_args() CartUpdateCustomer::get args WC 5.0.0
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->billing_address_schema->get_properties(),
],
'shipping_address' => [
'description' => __( 'Shipping address.', 'woocommerce' ),
'type' => 'object',
'context' => [ 'view', 'edit' ],
'properties' => $this->shipping_address_schema->get_properties(),
],
],
],
'schema' => [ $this->schema, 'get_public_item_schema' ],
];
}