Automattic\WooCommerce\StoreApi\Routes\V1\Agentic
CheckoutSessionsUpdate::get_args
Get method arguments for this REST route.
Метод класса: CheckoutSessionsUpdate{}
Хуков нет.
Возвращает
Массив. An array of endpoints.
Использование
$CheckoutSessionsUpdate = new CheckoutSessionsUpdate(); $CheckoutSessionsUpdate->get_args();
Код CheckoutSessionsUpdate::get_args() CheckoutSessionsUpdate::get args WC 11.0.1
public function get_args() {
return [
'args' => [
'checkout_session_id' => [
'description' => __( 'The checkout session ID (Cart-Token JWT).', 'woocommerce' ),
'type' => 'string',
],
],
[
'methods' => \WP_REST_Server::CREATABLE,
'callback' => [ $this, 'get_response' ],
'permission_callback' => [ $this, 'is_authorized' ],
'args' => $this->get_update_params(),
],
'schema' => [ $this->schema, 'get_public_item_schema' ],
];
}