Automattic\WooCommerce\StoreApi\Routes\V1
Cart::get_args
Get method arguments for this REST route.
Метод класса: Cart{}
Хуков нет.
Возвращает
Массив. An array of endpoints.
Использование
$Cart = new Cart(); $Cart->get_args();
Код Cart::get_args() Cart::get args WC 10.5.0
public function get_args() {
return [
[
'methods' => \WP_REST_Server::READABLE,
'callback' => [ $this, 'get_response' ],
'permission_callback' => '__return_true',
'args' => [
'context' => $this->get_context_param( [ 'default' => 'view' ] ),
],
],
'schema' => [ $this->schema, 'get_public_item_schema' ],
'allow_batch' => [ 'v1' => true ],
];
}